Disabled controls

  • Thread starter Thread starter web1110
  • Start date Start date
W

web1110

Is there a way to set the colors of a disabled control? What I am getting on
a disabled textbox is hard to read.
 
web1110,

Not really, if you were to do that, you would have to change the system
settings for all controls.

The only way to do this would be to create a custom control and paint
the control yourself.

Hope this helps.
 
The only way to do this would be to create a custom control and paint
the control yourself.

You wouldn't really have to "paint" the control yourself (if you really
meant "paint"), would you? How about just overriding OnEnabledChanged in
your custom control and changing the BackColor and ForeColor as you wish.
 
Back
Top