You can try something like this.
void ScrollToLine(int lineNumber) { if (lineNumber > richTextBox1.Lines.Count()) return; richTextBox1.SelectionStart = richTextBox1.Find(richTextBox1.Lines[lineNumber]); richTextBox1.ScrollToCaret(); }
This will not work if you have many repetitions in a RichTextBox. I hope this comes in handy.
source share