Public ShortCut
-
Hi, to Every one, i want to use shortcut keys for my program functions, in example when a user clicks on the specific button a function calls by the program now i want, user can access to this method by pressing a specific key (like Alt+E) instead pressing a button... how can i do this ? -- thanks to you all --> :rose:
-
Hi, to Every one, i want to use shortcut keys for my program functions, in example when a user clicks on the specific button a function calls by the program now i want, user can access to this method by pressing a specific key (like Alt+E) instead pressing a button... how can i do this ? -- thanks to you all --> :rose:
You need to setup keypreview for the form, and then listen to the KeyPress events. When the specified keys are pressed then call the necessary function. If I am correct some menu items can be automatically set for a key shortcut. So when the specified shortcut is pressed then the menu item click event is called automatically.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog