Results 1 to 3 of 3

Thread: Tab index to get to next item

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Location
    MO
    Posts
    24
    I have set up the tabindex on my form to go to the correct place when the tab button is pressed. I need it to select the text in the text box when the tab button is pressed. Right now it goes to the begining of the text box but does not select the information in the text box. Any ideas would be appreciated.
    Intensejp

  2. #2
    Addicted Member
    Join Date
    May 2000
    Posts
    188
    In the got focus event of the textbox put this

    Text1.SelStart = 0
    Text1.SelLength = Len(Text1.Text)

    that will highlight all the text in a textbox whenever the textbox gets focus

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Location
    MO
    Posts
    24
    Thanks that worked great
    Intensejp

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