Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

assign custom color to ForeColor of a disabled Button control

$
0
0
I am using C# and .Net 3.51 Framework.

How can I  use a custom color for Text shown on a disable Button control?  The Windows default disabled color is too close to the button's background color and close to the color when it is enabled.  I put a line (e.g. btnSubmit.ForeColor = Color.SmokeWhite; along with btnSubmit.Enable = false; the color never changed while the button was disabled. 

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>