Hi,
when the textbox got selected (and have some text) I need to move the cursor to the last position? or in the middle? how can I do that?
Printable View
Hi,
when the textbox got selected (and have some text) I need to move the cursor to the last position? or in the middle? how can I do that?
Use the Select method specifying the start yourself and using 0 for length.
TextBox1.Select(3, 0) 'moves the caret 3 chars right from the beginning
TextBox1.Select(TextBox1.Text.Length, 0) 'Moves the caret to the end and beyond :)