Make cursor follow input, richtextbox

MrMetabolism

New member
Joined
Mar 10, 2008
Messages
2
Programming Experience
Beginner
Hello,

I've got a bit of code that enters a string into a rich text box. Trouble is, I need to know the line and column of the last input.

After looking around a bit, I've found how to get the line and column numbers for selected text or the cursor position but I'm not sure how to place the cursor at the end of the last input.

If someone could suggest how to do this, or suggest a better method for getting the line/column numbers of the last input I'd be grateful.

Thanks in advance.

Edit: Seems by cursor I also mean "caret". Learn something new everyday.
 
Last edited:
Seems I've found a solution...to the moving "caret" anyway

Richtextbox1.SelectedText = "string here"

Inserts the string at the caret location, then moves the caret to the end of the new string.

Anyway, if anyone has a better solution, my ears are still open.
 

Latest posts

Back
Top