|
-
Nov 29th, 2001, 06:23 AM
#1
Thread Starter
New Member
Hi there can someone Tell me how can i capture keyboard KeyPress...
my problem is that i looking for A function who can tell me which
key was presses on which form.
I not looking for text1_KeyPress metod I'm lookink for a general keyPress.
for EX: when the User Press RightArrow Key then Data On Specipic Form will Move Next
thank
-
Nov 29th, 2001, 08:25 AM
#2
In that case, use the Form_KeyDown event (Make the sure KeyPreview property of your Form is set to True).
VB Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyRight Then
MsgBox "Right Arrow key was pressed."
End If
End Sub
-
Nov 29th, 2001, 08:57 AM
#3
Thread Starter
New Member
thank u I what I was looking for
-
Nov 30th, 2001, 02:33 PM
#4
No problem. Glad to help...
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
|