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
..
 
Back
Top