Results 1 to 2 of 2

Thread: TextBox control

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    1
    I have a lot of text boxes in several frames on a single form. When the program executes I want to tab to different text boxes and when I tab I want to highlight the text to make editing easier. Right now, when I tab to the textboxes it just goes to the end of the string and doesn't highlight anything. I know that in the getFocus event you can set the selstart and then sellength to highlight all of the text, but if there's an easier way, I sure would like to hear about it. Thanks.

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523
    What about this:
    Code:
    Private Sub Text1_GotFocus()
        SendKeys "{Home}+{End}"
    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