Articles in this section
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

 

Appearance during Run Time

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied