Puting the cursor to the right

How to Put the cursor to the right side of the text box upon executing the setfocus?
example i have a text box name text1.text then a command button name cmd1.
my code goes like this;

Private Sub cmd1_Click()
End Sub

i want the cursor to position right side of the text1.text

Whing Dela CruzAsked:
Who is Participating?
Antagony1960Connect With a Mentor Commented:
Private Sub cmd1_Click()
Text1.SelStart = Len(Text1.Text)
End Sub
Whing Dela CruzAuthor Commented:
Thanks to you,
the code is working...
More Power!
Glad to have helped! :-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.