I need a way to GoTo a specified line number in a RichTextBox display in C#.
In other words&
I would like the line number requested to become the 1st line displayed in the visabe (on-screen) RichTextBox.
I seem to be able to set the selection using the following
int lineno = 20; // example: 20 is a legal line number in the Richtextbox.
int index = this.scriptContainer.GetFirstCharIndexFromLine(lineno);
However the RTB control does not seem to automatically jump to display the selection in the visable RichTextBox.
What Am I missing?
I cant seem to find a simple GoTo line number ;-)
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …