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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top