W web1110 Mar 16, 2005 #1 Is there a way to set the colors of a disabled control? What I am getting on a disabled textbox is hard to read.
Is there a way to set the colors of a disabled control? What I am getting on a disabled textbox is hard to read.
N Nicholas Paldino [.NET/C# MVP] Mar 16, 2005 #2 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.
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.
D Daniel Billingsley Mar 16, 2005 #3 The only way to do this would be to create a custom control and paint the control yourself. Click to expand... 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.
The only way to do this would be to create a custom control and paint the control yourself. Click to expand... 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.