Cursor position in TextBox

D

Doug Bell

Hi,
How do I get the position of the cursor (as character position) when it is
in a text box with no text selected?

Thanks

Doug
 
H

Herfried K. Wagner [MVP]

Doug Bell said:
I just found that TextBox.SelectionStart will show Cursor Position even if
text is not selected.

The input mark is actually not called cursor. It's instead called caret.
 

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

Top