Results 1 to 5 of 5

Thread: Detecting F1 KeyPress

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    Hi I need know the value of the F1 key so I can detect it's being pushed.Anyone know?
    I need to setfocus of a control only when F1 is pushed so the control only has the focus long enough to show it's help context ID.

  2. #2

    Post

    Use the Keydown event

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    I need to know it's value or keycode for the parameters of the keydown event. I tryed:
    If key = F1 then ...blah-blah
    blah-blah was triggered by any keypress!
    Anyone?

  4. #4
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    KeyCode for F1 Key is vbKeyF1 if that's what you are asking.
    HTH

    ------------------
    Visual Basic Programmer
    ------------------
    PolComSoft
    You will hear a lot about it.


  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    Thanks Qwerty

    Joey O.

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