Moving Cursor inside textbox

hadinatayp

Well-known member
Joined
Feb 8, 2006
Messages
95
Programming Experience
Beginner
I have 1 textbox and 1 button.

if i click the button :
VB.NET:
textbox1.text="Test"
textbox1.focus()

then in the textbox will shows up the "Test" string and the string will highlighted, if i type something (ex. a) -> the value will become "a".

Nah, what i want is after setting the textbox1.text the cursor is immediately
at the last position of the string, and if i type something (ex.a) -> the text will become "Testa"
 
tricky? select the position after the length of the text in textbox:
VB.NET:
textbox1.select(textbox1.text.length,0)
 
Back
Top