devxlogo

Setting Cursor to End

Setting Cursor to End

Question:
Is there a way to put the cursor at the end of the text in a text box?

I use .SetFocus to put the cursor in a multi-line text box that conatins text and it sits at the start. I would like it to go to the end of the text.

Answer:
Set the .SelLength property of the text box = len(textbox.text). That will move the cursor to the end.

devx-admin

Share the Post: