CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Posts
    1

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

  2. #2
    Join Date
    Apr 2007
    Location
    Florida
    Posts
    403

    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
  •  





Click Here to Expand Forum to Full Width

Featured