-
How do I use the F-Buttons without a menu ?
In a form, which contains many listboxes, I want to use the
F-buttons (F1-F12) for shortcuts. But I dont have a menu
and I dont want to write the code for evey list-box (at KeyDown).
[i]Thanks for some help, Matt-D(eutschland) :rolleyes:
-
KeyPreview
You can set the Keypreview property of the form to True. That means that the form gets all key events before the control that has the focus gets it. So in the KeyPress event of the form, you can check for which F-keys were pressed and respond accordingly.
Hope this helps.
Shrog