I am using System.Windows.Forms.RichTextBox and doing something like
RichTextBox1.Text = "Hello World";
But after this statement the cursor position of in the RichTextBox remains in the beginning. Is there any way to set it to the end?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should do it for you:
Edit: If you have a lot of text in the textbox and which it to scroll the caret into view too, add this line:
See msdn for more.