0

Im trying to make a small game in visual basic 6. It requires the moving of a command button depending on the different key inputs. I have the code working when you push other command buttons that this one moves but I cant figure out how to detect when either the wasd keys are pushed or the arrow keys. If someone could give me a code snippet for detecting key input thatd be awesome.

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by vb5prgrmr
0

use the keydown,keypress, or keyup event of the command button and form (just in case the command button looses focus).

Good Luck

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.