First of all, this is a vb.net question, so it should of been posted in that forum (a mod will move it shortly). Also, i do know the answer to your question. What you want is to create a KeyDown() event for your form. This is the code you want:
vb
Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
'your code goes here
End Sub
That sub will fire every time a key is pressed and the form has focus. To get what key was pressed, type
vb
that will return the key that was pressed. Also, there are three other boolean (true/false) values that will return weather or Shift, Alt, or Ctrl was held down. There values are called
vb
To use this to do what you want, here is an example. If you had a button called Button1, and if 'Ctrl+A' was your hotkey, this is what you would do
vb
Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.Control And e.KeyCode = Keys.A Then
Button1.PerformClick()
End If
End Sub
Hope that helps