This post is not quite like the usual "I need to changed my textbox's disabled color" posts - Im having trouble going the other way.
I want to simulate a disabled control in one of my overridden paint methods - is there a method/formula for calculating the forecolor of a disabled control based on it's backcolor?
Eg, a LinkLabel with a Cornsilk backcolor, looks like this when Enabled = False:
You can see the ForeColor of the text has been automagically set to a shade based on the BackColor.
Any ideas?
Thanks
mafro
I want to simulate a disabled control in one of my overridden paint methods - is there a method/formula for calculating the forecolor of a disabled control based on it's backcolor?
Eg, a LinkLabel with a Cornsilk backcolor, looks like this when Enabled = False:

You can see the ForeColor of the text has been automagically set to a shade based on the BackColor.
Any ideas?
Thanks
mafro