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

How to move the cursor in a text box 2

Status
Not open for further replies.

MrMajik

IS-IT--Management
Apr 2, 2002
267
I have a form that, when opened, has a text field. The text field is populated with one or two words of text when the form opens. The text is not always the same.

I need help moving the cursor to the end (right side) of the text without any help from the user. Right now when the form opens the cursor is to the left side of the text field.

Do you know how to do this?

Thank you.

MrMajik

Everything should be made as simple as possible, but not simpler
--Albert Einstein


 
Text1.SelStart = Len(Text1.Text)

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
sisan and johnwm,

This place is awesome! Thank you :)

Thank you.

MrMajik

Everything should be made as simple as possible, but not simpler
--Albert Einstein


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top