This topic has not yet been rated - Rate this topic

StatusBar.Progress Method

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

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

void Progress (
	bool InProgress,
	[OptionalAttribute] [InAttribute] string Label,
	[OptionalAttribute] [InAttribute] int AmountCompleted,
	[OptionalAttribute] [InAttribute] int Total
)
void Progress (
	boolean InProgress, 
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ String Label, 
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ int AmountCompleted, 
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ int Total
)
function Progress (
	InProgress : boolean, 
	Label : String, 
	AmountCompleted : int, 
	Total : int
)

Parameters

InProgress

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

Label

Optional. The label to display on the meter control.

AmountCompleted

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

Total

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
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Advertisement