470,594 Members | 1,496 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

RichTextBox cursor

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

Thanks
Nov 20 '05 #1
2 3168
Nathan wrote:
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
Nov 20 '05 #2
Nathan wrote:
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
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by S.W. Rasmussen | last post: by
3 posts views Thread by AttiDude | last post: by
2 posts views Thread by anonymous | last post: by
5 posts views Thread by pinocchio | last post: by
3 posts views Thread by Eps | last post: by
1 post views Thread by Peter | last post: by
8 posts views Thread by Dennis | last post: by
reply views Thread by Lou | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.