Currently i have a button and a text box
I want to make it so i click the button and text gets added to the textbox the current carat location and then the carat is placed at the end of the selected text.
I currently have this in the button press event
which works except it deselects the text box and puts the carrot at the beginning of the text box
How can i put the carat just after where the text was inserted after pressing a button?
e.g. microsoft word insert data function
I want to make it so i click the button and text gets added to the textbox the current carat location and then the carat is placed at the end of the selected text.
I currently have this in the button press event
VB.NET:
TextBox1.Text = TextBox1.Text.Insert(TextBox1.SelectionStart, "test")
How can i put the carat just after where the text was inserted after pressing a button?
e.g. microsoft word insert data function