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.
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.