Changing color of TextBox when disabled

  • Thread starter Thread starter Cole Shelton
  • Start date Start date
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
 
* "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.
 
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.
 
Back
Top