|
-
Jul 8th, 2009, 10:28 PM
#5
Frenzied Member
Re: [RESOLVED] Shortcut keys do not work
I am a beginner of .net framework and the visual basic language
I added the following code:
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.Control = True And e.KeyCode = Keys.P Then
Me.Button1.PerformClick()
End If
End Sub
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
MessageBox.Show("This is a message box")
End Sub
but this is not working for me.....
can you tell me why its not working?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|