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.
 

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

Back
Top