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:
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.Code:Me.tbLowerBody.SelectionStart = 0 Me.tbLowerBody.SelectionLength = 0
Thanks for your help!


Reply With Quote
