RichTextBox cursor

  • Thread starter Thread starter Nathan
  • Start date Start date
N

Nathan

In a RichTextBox, how do you get/set the current location of the blinking
cursor (not the mouse cursor)?

Thanks
 
Nathan said:
In a RichTextBox, how do you get/set the current location of the blinking
cursor (not the mouse cursor)?

Hi Nathan,

have a look at SelectionStart and SelectionLength. The current
Caret-Location is SelectionStart + SelectionLength.

Cheers

Arne Janning
 

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