Category / Section
How to change the backcolor when WinForms DoubleTextBox control is readonly?
1 min read
Background color
When the DoubleTextBox control is ReadOnly, you can make use of the ReadOnlyBackColor property to change backColor.
C#
this.doubleTextBox1.ReadOnly =true; this.doubleTextBox1.ReadOnlyBackColor =Color.Beige;
VB
Private Me.doubleTextBox1.ReadOnly =True Private Me.doubleTextBox1.ReadOnlyBackColor =Color.Beige