RichTextBox Control (Windows Forms)
The Windows Forms RichTextBox control is used for displaying, entering, and manipulating text with formatting. The RichTextBox control does everything the TextBox control does, but it can also display fonts, colors, and links; load text and embedded images from a file; undo and redo editing operations; and find specified characters. The RichTextBox control is typically used to provide text manipulation and display features similar to word processing applications such as Microsoft Word. Like the TextBox control, the RichTextBox control can display scroll bars; but unlike the TextBox control, it displays both horizontal and vertical scrollbars by default and has additional scrollbar settings.
In This Section
- RichTextBox Control Overview (Windows Forms)
Introduces the general concepts of the RichTextBox control, which allows users to enter, display, and manipulate text with formatting options.
- How to: Determine When Formatting Attributes Change in the Windows Forms RichTextBox Control
Explains how to keep track of changes in font and paragraph formatting in the RichTextBox control.
- How to: Display Scroll Bars in the Windows Forms RichTextBox Control
Describes the many choices available for scroll bars in the RichTextBox control.
- How to: Display Web-Style Links with the Windows Forms RichTextBox Control
Explains how to link to Web sites from the RichTextBox control.
- How to: Enable Drag-and-Drop Operations with the Windows Forms RichTextBox Control
Provides instructions for dragging data into the RichTextBox control.
- How to: Load Files into the Windows Forms RichTextBox Control
Provides instructions for loading an existing file into the RichTextBox control.
- How to: Save Files with the Windows Forms RichTextBox Control
Provides instructions for saving the contents of the RichTextBox control to a file.
- How to: Set Font Attributes for the Windows Forms RichTextBox Control
Describes how to set the font family, size, style, and color of text in the RichTextBox control.
- How to: Set Indents, Hanging Indents, and Bulleted Paragraphs with the Windows Forms RichTextBox Control
Describes how to format paragraphs in the RichTextBox control.
Reference
- RichTextBox class
Describes this class and has links to all its members.
Related Sections
- Controls to Use on Windows Forms
Provides a complete list of Windows Forms controls, with links to information on their use.
- TextBox Control (Windows Forms)
Introduces the general concepts of the TextBox control, which allows editable, multiline input from the user.