Solved

Go to a specific line number in RichTextBox

Posted on 2004-09-19
4
426 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

717 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