|
-
Nov 15th, 2000, 06:13 AM
#1
Thread Starter
Hyperactive Member
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)
-
Nov 15th, 2000, 06:31 AM
#2
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|