Results 1 to 2 of 2

Thread: Shortcuts

  1. #1

    Thread Starter
    Hyperactive Member Matt-D's Avatar
    Join Date
    Nov 1999
    Location
    Mettmann, Germany
    Posts
    305

    Arrow

    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)

  2. #2
    Addicted Member Shrog's Avatar
    Join Date
    Aug 1999
    Location
    Darkest Africa
    Posts
    186

    Lightbulb 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
  •  



Click Here to Expand Forum to Full Width