cursor

  • Thread starter Thread starter rammohan
  • Start date Start date
R

rammohan

hello
how can we change cursor on particular text in
richtext box using c# i.e i want to change the cursor from
default to Hand when the mouse moves over a particular
text.


regards
--rammohan
 
Hi rammohan

There is a RichTextBox method: int GetCharIndexFromPosition(Point pt);

You can check your text at index with this method in
*MouseMove* event.

Then you can set *RichTextBox.Cursor* property e.g. to *Cursors.Hand*

Marcin
 
Back
Top