|
-
May 18th, 2004, 04:59 PM
#1
Thread Starter
Addicted Member
Need to get a key in VB
Okay I searched the forum and I couldnt find a way to get a keypress. What would the code be to get say the right arrow key? Im not sure what event or how to trigger such an event. I have a form in VB.NET and the game runs on the form.
-
May 18th, 2004, 05:23 PM
#2
I am not sure how you do it in VB.NET but at least in regular VB, you can choose diffrent events for a form, and one of them are key_up. That one or Key_down or key_press can be used to get a hold of a keypress...
-
May 18th, 2004, 08:13 PM
#3
Frenzied Member
Also in regular vb there are built in constants for each key.
For the right key it's vbKeyRight and for enter/return vbKeyReturn etc...
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
|