Results 1 to 2 of 2

Thread: Detect keydown when hidden

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    40

    Detect keydown when hidden

    I need to detect when a combination of keys is pressed when the form is hidden
    VB Code:
    1. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    2.  If KeyCode = vbKeyTab And Shift = 2 Then
    3.    MsgBox "hi"
    4.    End If
    5. End Sub
    Works fine when the form is visable, but will not work when the form is hidden (this code detects when ctrl and tab are pressed together)

    Any ideas?

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Detect keydown when hidden

    Search the forums for the GetAsyncKeyState API or for a keyboard hook.


    Has someone helped you? Then you can Rate their helpful post.

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