Whenever I set the RichTextBox.Enabled property to false, its background color is automatically set to gray as it is set to the color in system color which is set in the control panel. How can I change its color to black even if I set it to disabled?
Whenever I set the RichTextBox.Enabled property to false, its background color is automatically set
Share
See: How to change the font color of a disabled TextBox?
[Edit – code example added]
or as en extension method (I realized you don’t have to put it in readonly since the Enter event catches any input):