Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello ... How can I automaticall

Status
Not open for further replies.

subhavs

Programmer
Nov 27, 2000
54
US
Hello ...

How can I automatically highlight text in a Text Box when I tab into it ?

Thanks,

- Subha :) Nothing is impossible, even the word impossible says I'm possible.
 
Hi,
Just like this:

Private Sub txtFirstName_GotFocus()
txtFirstName.SelStart = 0
txtFirstName.SelLength = Len(Nz(txtFirstName, 0))
End Sub Rob Marriott
rob@career-connections.net
 
Rob,

Thanks much.

- Subha :) Nothing is impossible, even the word impossible says I'm possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top