Results 1 to 2 of 2

Thread: Cursor Position

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2011
    Posts
    198

    Cursor Position

    Trying to set the cursor position in a RichTextBox. The contents of a document are opened into the RichTextBox and I would like the cursor to move to the very start of the text.

    At the moment, I'm using:

    Code:
    Me.tbLowerBody.SelectionStart = 0
                Me.tbLowerBody.SelectionLength = 0
    However, this seems to provoke my "Would you like to save changes" dialog on closing the RTB even though no actual changes have been made.

    Thanks for your help!

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: Cursor Position

    your content change detector code doesn't work properly then

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