How can I change the Buttons’s ForeColor with my own RGB value (example: 131;160;21) programmatically (not from designer)? The property R, G and B in Button-control are only “get” property and not “set”.
I want to change it when the “Enabled” property is changed and I have also implemented event handler for EnabledChanged event.
Thank you in advance.
Use
Color.FromArgbMethodIf you need to control the alpha too, use the overloaded method.