"Go To Line" in a textbox.
Posted on 2004-03-23
Simple question, can't find the answer.
I can retrieve the line that I want in a RichTextBox control (multiline) and now I want to "go" to that line. Basically, I've got an RTB that's getting data added to it constantly. When my "autoscroll" is turned on, I simply set the .SelStart to the end of the document, and that works passingly. Now I want to be able to turn off the scroll, and have the RTB just sit there. Unfortunately, every time the data in the RTB is swapped (I have to generate the .rtf myself) the box moves back to the beginning of the "document."