|
-
January 6th, 2003, 03:05 PM
#1
how to determine which keystroke?
I'd like to check which key on the keyboard was pressed. My first attempt looked somthing like this:
Private Sub Button1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Button1.KeyPress
If e = System.Windows.Forms.Keys.Left Then
End If
End Sub
This gets a syntax error on the right side of the equal sign. Anyone see what I'm doing wrong?
Thanks in advance.
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
|