We help IT Professionals succeed at work.

text data highlighted

fayb
fayb asked
on
Medium Priority
164 Views
Last Modified: 2010-05-02
How can I make the text in a text box show up highlighted at runtime?  
Comment
Watch Question

Private Sub Form_Load()
    Text1.SelLength = Len(Text1.Text)
End Sub

Author

Commented:
Thanks
That works if I add the SelStart code.

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

Explore More ContentExplore courses, solutions, and other research materials related to this topic.