How do I code a highlight of the entire text in text box?
I have a text box on a form and I need to have all of the text highlighted in the text box when the form loads.
I appreciate any effort and time,
Daniel Christie
Printable View
How do I code a highlight of the entire text in text box?
I have a text box on a form and I need to have all of the text highlighted in the text box when the form loads.
I appreciate any effort and time,
Daniel Christie
This will do what you asked:
Code:Text1.SelLength = Len(Text1.Text)
might also need selstart
Code:Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)