CodeItBetter Programming Another VB Programming Blog

How to select the content of text box when entering into it.

Posted on January 4, 2009
1
2
3
4
5
6
'Controls - How to select the content of text box when entering into it.
Private Sub Text1_GotFocus()
    Text1.SelStart = 0
    ' A very high value always does the trick.
    Text1.SelLength = 9999
End Sub
Filed under: Controls Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.