-
[RESOLVED] Hotkeys
I'm working on a project that contains hotkeys, but I don't wish to have global hotkeys. At the moment, I'm using KeyDown and e.KeyCode for hotkeys. I've created test projects where these worked perfectly fine, but on my main project, they don't register.
Code:
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.Tab Then
MsgBox("works")
End If
End Sub
Thanks for reading,
TsterT
-
Re: Hotkeys
Hi,
Didn't you forgot to set the Keypreview = True in the form properties.
-
Re: Hotkeys
It has, and always has been set to True. But for some odd reason, just worked ><.
Appreciate the reply,
TsterT