|
-
Oct 26th, 2000, 10:32 PM
#1
Thread Starter
Addicted Member
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
-
Oct 26th, 2000, 10:38 PM
#2
Fanatic Member
This will do what you asked:
Code:
Text1.SelLength = Len(Text1.Text)
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
-
Oct 26th, 2000, 11:17 PM
#3
Lively Member
might also need selstart
Code:
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|