Key combinations....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 The
MessageBox.Show("SUCCESS"
End I
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
 
* "=?Utf-8?B?TnVubw==?= 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?

Use the form's 'KeyDown' event and set its 'KeyPreview' property to
'True'.
 
Back
Top