VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Highlights text in a textbox when it receives focus

by Jeff (3 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Tue 4th January 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Highlights text in a textbox when it receives focus

Rate Highlights text in a textbox when it receives focus




textbox1.selstart=0                   'Goes to the front of the box
textbox1.sellength=len(textbox1.text) 'Hightlights to the end of the word
textbox1.setfocus                     'Sets focus on textbox

Download this snippet    Add to My Saved Code

Highlights text in a textbox when it receives focus Comments

No comments have been posted about Highlights text in a textbox when it receives focus. Why not be the first to post a comment about Highlights text in a textbox when it receives focus.

Post your comment

Subject:
Message:
0/1000 characters