Share via


BaseTaskForm.InvalidateTask(Boolean) Method

Definition

Invalidates the progress bar and causes the control to be redrawn.

protected public:
 void InvalidateTask(bool progressGradientOnly);
protected internal void InvalidateTask (bool progressGradientOnly);
member this.InvalidateTask : bool -> unit
Protected Friend Sub InvalidateTask (progressGradientOnly As Boolean)

Parameters

progressGradientOnly
Boolean

true to invalidate the progress bar's child controls; otherwise, false.

Examples

The following example stops the progress bar.

protected override void StopTaskProgress() {
    base.StopTaskProgress();

    MyStopTaskProgress();

    InvalidateTask( true);
}

Applies to