text cursor position

  • Thread starter Thread starter Ilann
  • Start date Start date
I

Ilann

Hi,

I need to get the text cursor position in a richedit Control, ie I want my
ContextMenu to appear exactly where the user is typing text,


Thanks
 
Hi Ilann,

Look at the RichTextBox.GetPositionFromCharIndex method. The character
index (where the caret is) you can get from RichTextBox.SelectionStart
property
 
Back
Top