- How to programmatically set the ForeColor of a label to its default?
- lblExample.ForeColor = System.Drawing.Color.Red;
- if (lblExample.ForeColor != System.Drawing.Color.Red)
- {
- lblExample.ForeColor = System.Drawing.Color.Red;
- }
- else
- {
- lblExample.ForeColor = new System.Drawing.Color();
- }