Adding in hotkeys in a Visual Basic program?
mad_genius575 asked:
What line of code or whatever do I need to enter inorder to assign a hotkey to a button in visual basic? As in, if I have a button called ‘quit’ and I want them to be able to close the program by pressing Q (or whatever combinations are necessary) how would I code that in to the buttons code?
Related posts:
- How to write a program in Visual Basic to add, update, or delete records? Kevin asked: Okay, I’m about stressed to the limits right...
- I have a question here about Visual Basic programming, hope you guys will answer:? bill asked: I want to create a program (in Standard...
- Really Challenging Visual Basic Question Problem? ABC asked: I have a little problem. I need to...
- What is will I use if i want to make a program in visual basic which ask for a username, password? Kenz asked: Im tying to make a project in visual...
- Visual basic programming help? dalibor.suhanji asked: I am using visual asic 6 enterprise edition....
Filed Under Programming & Design |
Tagged With Buttons, Combinations, Hotkey
Comments
One Response to “Adding in hotkeys in a Visual Basic program?”
Just add an Ampersand into the Command button caption ala:
E&xit = hitting X with execute this command button if the form has focus