Does anyone have idea how I can move the cursor to a certain line number in the Richtext edit?
Something like, Go to line number: _____ and then clicking OK button jumps the cursor to that line?
Your help is much appreciated.
Thanks.
Loading
Does anyone have idea how I can move the cursor to a certain line number in the Richtext edit?
Something like, Go to line number: _____ and then clicking OK button jumps the cursor to that line?
Your help is much appreciated.
Thanks.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mike GoldPosted Jul 31, 2007, 2:40 AM
it's a pleasure to help out.
Best,
AndrewPosted Jul 30, 2007, 6:55 PM
I have been googling around most of a day just to find the solution, and even went to Win32 API, but could not find one working.
In addtion, this is the first time I post question here and I am very happy to find a place where I there are helpful developers that shares knowledge and experience.
Again, thank you Mike and CSharpcorner.
Mike GoldPosted Jul 30, 2007, 6:41 PM
{
int index = richTextBox1.GetFirstCharIndexFromLine(i-1);
richTextBox1.Select(index, 0);
}