No timer needed , heres the code:
Set the "KeyPreview" property to "True" on form1
If you cant see it use this code in the "Form1_load" event :
Code:
Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = System.Windows.Forms.Keys.F12 Then
MsgBox("You Clicked F12")
End If
End Sub
Set the "KeyPreview" property to "True" on form1
If you cant see it use this code in the "Form1_load" event :
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
KeyPreview = True
End Sub