如何制作按HOME呼出VB窗体
不加入任何东西,加入代码就可以,我是初学者,不懂什么数据库!
首先你要声明一个全局热键
然后再定义具体的键值
代码如下:
Private Declare Function GetAsyncKeyState Lib "user32" _
(ByVal vkey As Long) As Integer
Private Function MyHotKey(vKeyCode) As Boolean
MyHotKey = GetAsyncKeyState(vKeyCode) < 0
End Function
Private Sub Form_Load()
Timer1.Interval = 10
End Sub
Private Sub Timer1_Timer()
If MyHotKey(vbKeyHome) Then
End
End If
End Sub