How can I programmatically position the cursor on a given line and character of my richtextbox
There are a couple different methods that can be used here. The first changes focus, so may not be possible if you have controls that fire validation. The second uses interop, which requires full trust.
Eric Terrell suggested this solution in an email to email@example.com.
The richtextbox control contains a Lines array property, one entry for every line. Each line entry has a Length property. With this information, you can position the selection cursor using code such as:
(Note: you may want to store this.ActiveControl to be retrieved after calling Select()).