如何通过单击vb.net中的按钮使功能键F5正常工作? [英] How to make the function key F5 to function by clicking a button in vb.net?

查看:171
本文介绍了如何通过单击vb.net中的按钮使功能键F5正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



这里有一些问题。我的电脑F5功能键是破坏。在这里,我需要每天刷新数据。因此,我计划用一个按钮设计一个窗体。如果我单击该按钮,则需要执行F5键。任何人都可以帮助我吗?



以下代码是我设计的节目。但这不起作用。



Hi Friends,

Here I have some problem. My computer F5 function key is spoil. Here I need to refresh data every day. Thus I plan to design a windows form with one button. If I click that button, it would need to perform as F5 key. Could any one help me?

The below code is shows were I design. But it is not work.

Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Button1.Click
        Select Case Keys.F5
        End Select
    End Sub
End Class





谢谢。



问候,Thanes



Thanks.

Regards, Thanes

推荐答案

查找SendKeys并查看是否有办法让你的按钮激活你的F5钥匙。你可能需要在它开始工作之前将你希望它应用的程序用于焦点...
look up SendKeys and see if there is a way you can make it work with your button to activate your F5 key. You may need to play around with getting the program you want it applied to in Focus before it will work...


这篇关于如何通过单击vb.net中的按钮使功能键F5正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆