Sunday, August 2, 2009

Adding in hotkeys in a Visual Basic program?

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?

Adding in hotkeys in a Visual Basic program?
http://msdn2.microsoft.com/en-us/library...
Reply:Just add an Ampersand into the Command button caption ala:





E%26amp;xit = hitting X with execute this command button if the form has focus


No comments:

Post a Comment