I've searched all around for the answer to this. I want a sub-procedure to run after I press the space bar. The problem is I have a button in my form, and when I press the space bar it clicks the button. I need some help with the code for the space keypress and with getting around the button issue. Answer from Richard Rost:
Look for a property on that button that's being pressed called DEFAULT. Set that to NO. The default button is the one that's pressed when you type space or enter on your keyboard and the form has focus (but not a field).
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.