I saw code once to change the ForeColor (Text Color) of a disable CommandButton. Anyone know how to do this?
Printable View
I saw code once to change the ForeColor (Text Color) of a disable CommandButton. Anyone know how to do this?
There is no property to change the foreground, however, you can "trick" the user and make a checkbox with and change the style to graphical, then just add code so when you click, automatically "uncheck" it.... I'll get an example for you in a sec.
Here is an example...
How about this:
http://www.vbthunder.com/default.asp?srcget=1
Thanks, kandieman, but I need this to work on disabled buttons. A checkbox set to graphical, which is disabled, is still grayed out.Quote:
Originally posted by kandieman101
Here is an example...
Cagez: Thanks. I messed around with it, trimmed it down, and it works great.
Okay, well, at least you have a method of changing the color for whatever :)