Search for
in snippet title/description
in snippet text
Browse Code
Add-Ins
Blog
Language Feeds
Service Stats
FAQs
Feedback
About
Manage Your Code
Login
Register
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
1
richTextBox1.SelectionStart = 0;
2
richTextBox1.SelectionLength = 0;
3
richTextBox1.SelectionStart = 0; richTextBox1.SelectionLength = 0;
Usage
See code sample...