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
 

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

Similar Threads


Back
Top