| Adding in hotkeys in a Visual Basic program?

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:

  1. 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...
  2. I have a question here about Visual Basic programming, hope you guys will answer:? bill asked: I want to create a program (in Standard...
  3. Really Challenging Visual Basic Question Problem? ABC asked: I have a little problem. I need to...
  4. 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...
  5. Visual basic programming help? dalibor.suhanji asked: I am using visual asic 6 enterprise edition....

Filed Under Programming & Design |

Tagged With , ,

Comments

One Response to “Adding in hotkeys in a Visual Basic program?”

  1. bdloving on May 28th, 2009 11:33 pm

    Just add an Ampersand into the Command button caption ala:

    E&xit = hitting X with execute this command button if the form has focus