-
January 6th, 2010, 03:26 PM
#1
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
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|