469,646 Members | 1,596 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

Cursor position in TextBox

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
Nov 21 '05 #1
3 2140
I just found that TextBox.SelectionStart will show Cursor Position even if
text is not selected.

"Doug Bell" <Po*********@vodaphone.com.au> wrote in message
news:el**************@TK2MSFTNGP15.phx.gbl...
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

Nov 21 '05 #2
"Doug Bell" <Po*********@vodaphone.com.au> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #3
Thanks, "^" is caret also.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uu*************@TK2MSFTNGP09.phx.gbl...
"Doug Bell" <Po*********@vodaphone.com.au> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Steve | last post: by
1 post views Thread by objectref | last post: by
5 posts views Thread by Tina | last post: by
2 posts views Thread by Gene Hubert | last post: by
4 posts views Thread by Neil Robbins | last post: by
4 posts views Thread by Brandon McCombs | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.