BaseTaskForm.InvalidateTask(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
}