January 6th, 2010, 03:26 PM
Cursor Position in RichTextBox
In my C# aplication I have RichTextBox and i want detect cursor position in RichTextBox text when I click on it. For example, if I click on RichTexBox so that cursor is placed after 10 character, then I want to have this number as varble int a. Please help me and say how to do that?
P.S. Sorry about my English, it is not my native language.
January 7th, 2010, 09:20 AM
Re: Cursor Position in RichTextBox
Are you using .Net 3.0/3.5? If so, you can use the CaretPosition class member, which is part of a RichTextBox instance.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!