New at this

11-02-2001, 04:21 AM
I am new to game programming, and my question is simple.

How do i get a form to recognise the up and down arrows?

I have been using the keypress event, but it does not seem to recognise the up/down/left and right arrows in the keypress.

How can i find out which arrow key has been pressed?


11-02-2001, 04:43 AM
use the keydown event and check the keycode ie
<pre><font color=blue>If</font color=blue> KeyCode = vbKeyUp <font color=blue>Then</font color=blue></pre>

11-02-2001, 04:52 AM
Thanks, that worked a treat.


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum