Rich TextBox has many formatting options. It applies the color, background colors, multiple fonts, and margins to the text. It adds more complexity than the regular Textbox.
The SelectionBackColor property changes the currently selected text in the Rich TextBox to the background color you assign to it. If there is no current selection, then the caret is used to start the selection.
DetectUrls
When entering text in the Rich TextBox, sometimes a link to a Web Page will be entered. If we set the DetectUrls property to true, the Rich TextBox will add hyperlink styles to any possible link.
Now, let's add other controls, like Panel, Color Dialog, Textbox, Button control to the form by dragging these from the Toolbox. You may also want to change the properties of the other controls.
Change the text of other controls to what you like.
STEP 3 - Coding for Button Click Event
You can add a button-click event handler by simply double-clicking on the button control event handler. We can display the text in Rich TextBox.