Changing color of TextBox when disabled

C

Cole Shelton

Is there a way to change the color of the text in the textbox when it is
disabled? I've noticed that you can change the BackColor, but any changes
to ForeColor are ignored. Is implementing a custom control the only
solution??

Thx,
Cole
 
H

Herfried K. Wagner [MVP]

* "Cole Shelton said:
Is there a way to change the color of the text in the textbox when it is
disabled? I've noticed that you can change the BackColor, but any changes
to ForeColor are ignored. Is implementing a custom control the only
solution??

Instead of disabling it, set its 'ReadOnly' property to 'True' and reset
the colors.
 
C

Cole Shelton

Thanks Herfried. What about other controls, such as ComboBox and ListBox? I
am wanting to make it easier for my users to read the text displayed in
controls when the controls are disabled.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top