Results 1 to 4 of 4

Thread: Tab in a Textbox

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Tab in a Textbox

    Do This:

    Place two textboxes on a form.

    Now tell me how to capture the TAB key, without setting TabStop Settings.

    I've got everything else figured out, can't do this one.

    Hoping for the best.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. Private Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer
    2.  
    3. Private Sub Text1_LostFocus()
    4.   If GetKeyState(vbKeyTab) < 0 Then
    5.     Text1.SetFocus
    6.     MsgBox "You can check out anytime you " & _
    7.           "want, but you can never leave.  (Who's your daddy?)"
    8.   End If
    9. End Sub

  3. #3

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Welcome to the Hotel California....

    Beautiful Thank you. All is well at HC. Good song

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    As peet would say...




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