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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shift to the left on text entry 1

Status
Not open for further replies.

Xzibit7

Technical User
Jun 20, 2006
172
US
I'm trying to figure out how to shift to the beginning of a text input whenever a user clicks anywhere on a text box in a form. It should be pretty straight forward but I cant seem to find how to do it. Thanks
 
Where YourTextBox is the actual name of your box:
Private Sub YourTextBox_Click()
YourTextBox.SelStart = 0
End Sub

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Thanks missinglinq.


BTW I live in Richmond too...Small world
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top