RichTextBox: Detecting when user moves cursor to new linw

  • Thread starter Thread starter Jay Ayliff
  • Start date Start date
J

Jay Ayliff

Hi all,

Is there a simple way to tell if the user changes to a new line in a
RichTextBox - e.g. by up/down arrow key, Enter key, etc?

Regards

Jay Ayliff
Stalis Ltd
 
Ah, just found the RichTextBox.GetLineFromCharIndex method. That should do
it, along with trapping key entry and click
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top