Home
Manage Your Code
Snippet: Reset RichTextBox selection after updates. (C#)
Title: Reset RichTextBox selection after updates. Language: C#
Description: After you finish modifying text within a RichTextBox control, you may want to move the cursor to the top of the control. Views: 99
Author: digitalWraith .net Date Added: 4/1/2008
Copy Code  
1richTextBox1.SelectionStart = 0;
2richTextBox1.SelectionLength = 0;
3
Usage
See code sample...