Change Forecolor on Disabled Button?

sempey

Newcomer
Joined
Mar 18, 2003
Messages
14
Location
Des Moines, IA
Okay, this seems really basic, but I can not figure it out. I have created a control that is a numeric keypad for touchscreen users. The control has a negative and a decimal button, and I have given the control properties to disable these two button when a negative or decimal isn't acceptable. When these properties set the buttons to enabled=false, I want to set the forecolor of the buttons to lightgray, so that they LOOK disabled. The problem that I'm having is that I can set the forecolor to lightgray, but then when the button gets disabled, it turns the forecolor back to black. Can I stop this from happening someway? I am using a flatstyle=flat button if this makes any difference.

Thanks ahead of time.
 
I think that this had to do with having a flatstyle = flat button with bold text. I just ended up making the button invisible and replacing it with a "disabled-looking" label instead of messing with the enabled font property.
 
Back
Top