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?