StatusBar::Progress Method (Boolean, String^, Int32, Int32)

 

Creates, modifies, and clears the meter control inside the StatusBar .

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

void Progress(
	bool InProgress,
	String^ Label = "",
	int AmountCompleted = 0,
	int Total = 0
)

Parameters

InProgress
Type: System::Boolean

Required. Indicates whether the meter is displayed. If InProgress is set to False, the meter is turned off. Otherwise, the meter is displayed.

Label
Type: System::String^

Optional. The label to display on the meter control.

AmountCompleted
Type: System::Int32

Optional. The number of steps of the operation that have completed.

Total
Type: System::Int32

Optional. The total number of steps in the operation.

Sub ProgressExample()
   Dim SBar As StatusBar
   SBar = DTE.StatusBar
   SBar.Progress(True, "doing something", 90, 100)
   SBar.Progress(False)
   SBar.Animate(True, vsStatusAnimation.vsStatusAnimationSave)
End Sub
Return to top
Show: