Results 1 to 2 of 2

Thread: Coding for the TabKey

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2001
    Location
    Southern California
    Posts
    733
    How can you tell when the Tab key is pressed in your application?

    Thanks,
    Jeff

  2. #2
    Guest
    Code:
    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
        If KeyCode = vbKeyTab Then MsgBox "TAB WAS PRESSED"
    End Sub
    
    Private Sub Form_Load()
        KeyPreview = True
    End Sub

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