Solved

Go to a specific line number in RichTextBox

Posted on 2004-09-19
4
406 Views
Last Modified: 2008-03-06
How can I go to a specific line number in a RichTextBox control ?

Thanks
0
Comment
Question by:delphi112497
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:vigrid
ID: 12097117
http://www.freevbcode.com/ShowCode.asp?ID=5434

Just look here. An answer for your question.
0
 
LVL 4

Accepted Solution

by:
vigrid earned 125 total points
ID: 12097131
Sorry. That was only VB5/6 code. Here's a tip how to do it in .NET (C# version only, but it's all the same functionality)

http://www.syncfusion.com/FAQ/WinForms/FAQ_c89c.asp (point 22.6)

HTH. If you need a translation to VB.NET - tell me.
0
 

Author Comment

by:delphi112497
ID: 12098560
vigrid, can you please give me the VB.NET translation ?

I tried this but it didn't work:

SendMessage((HWND)richTextBox1->Handle.ToPointer(), 187, 5, NULL);
richTextBox1->Focus();

thanks!
0
 

Author Comment

by:delphi112497
ID: 12098571
never mind ... I thought you meant a translation from VB -> C ...

thanks a lot!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question