Key Combination....Raise Event!!!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If i put this code :
If e.Control = True And e.Alt = True And e.KeyCode = 82 Then
MessageBox.Show("SUCCESS")
End If
in the event KeyDown of a textbox it works fine.... but i want my combination key to raise in the form how can i do it?
 
Set the Form's KeyPreview property to True.

Nick
Nuno said:
If i put this code :
If e.Control = True And e.Alt = True And e.KeyCode = 82 Then
MessageBox.Show("SUCCESS")
End If
in the event KeyDown of a textbox it works fine.... but i want my
combination key to raise in the form how can i do it?
 
Back
Top