Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Go to a specific line number in RichTextBox

Posted on 2004-09-19
4
Medium Priority
?
433 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

604 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