|
-
Apr 25th, 2000, 04:24 AM
#1
Thread Starter
Hyperactive Member
Hi - is there any way to detect when an arrow key is being pressed? Specifically, in a DataGrid I need to know when the user is pressing an arrow key, but I can't find any vbconstant like vbKeyReturn or anything else useful.
Thanks,
Andrew
-
Apr 25th, 2000, 04:31 AM
#2
Addicted Member
Instead of KeyPress, look for help on the KEYDOWN event.
The keycodes are 37 (left), 38 (up), 39 (right), & 40 (down)
for the arrow keys. The VB constants are vbKeyLeft,
vbKeyRight, vbKeyUp and vbKeyDown.
[Edited by jcouture100 on 04-25-2000 at 04:39 PM]
-
Apr 25th, 2000, 04:32 AM
#3
Addicted Member
Code:
vbkeyup
vbkeydown
vbkeyleft
vbkeyright
-
Apr 25th, 2000, 04:40 AM
#4
Thread Starter
Hyperactive Member
Thanks guys. Man that was 2 fast replies! 'Preciate it, as always.
Andrew
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
|