Is it possible to add padding into a Rich Text Box control between the text and the border?
I tried docking a rich text box inside of a panel, with its padding for all four side set to 10 and that accomplished what I wanted. Except once the vertical scroll bar for the rich text box is needed that gets padded as well.
The RichTextBox has no padding property.
Quick and dirty padding can be achieved by putting the RichTextBox in a Panel, which has the same
BackColorproperty as the RichTextBox (usuallyColor.White).Then, set the
Dockproperty of the RichTextBox toFill, and play with thePaddingproperties of the Panel control.