As the title suggests,
how to change the standard (default) forecolor when the label is disabled.
I came up with the following:
but it is not working ....Code:namespace COD { class CustomLabel : System.Windows.Forms.Label { private bool _enabled = true; protected override bool Enabled { get { return _enabled; } set { _enabled = value; if (_enabled) this.ForeColor = Color.FromKnownColor(KnownColor.Yellow); else this.ForeColor = Color.FromKnownColor(KnownColor.Red); } } } }
regards,
G.