Home DotNet How to Position textbox cursor at end of text
Author:

How do you position textbox cursor at end of text?

You often need to place the cursor at the end of the text when you are in an edit mode. For example you click on the edit button to have the form goes into the edit mode and you would like to have the user ready to edit the text without having them to click on the text box to place the cursor at the end of the text.

SAMPLE CODE:

textBox1.SelectionStart = textBox1.Text.Length + 1;



Comments (0)
Write comment
Your Contact Details:
Comment:
Security
Please input the anti-spam code that you can read in the image.

"