System.Windows.Forms.ProgressBar.ResetForeColor Method

Resets the Control.ForeColor to its default value.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public override void ResetForeColor ()

Remarks

Calling this method will reset the Control.ForeColor to System.Drawing.SystemColors.Highlight unless the method is overridden in a derived class. The ProgressBar.ResetForeColor method is useful when you create a designer for the control, or you are creating your own control that incorporates the System.Windows.Forms.ProgressBar.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0