ProgressBar.Hide Method
Hides the ProgressBar object.
object.Hide ()
Arguments
- object
- Required. Always the name of a ProgressBar object.
Remarks
The following example illustrates the use of the Hide method.
var dash = ActiveDocument.Sections["Dashboard"];
dash.pb0001 = new ActiveDocument.ProgressBar(dash);
with (dash.pb0001) {
Left(300);
Top(200);
Height(32);
Width(160);
Value(0);
MaxValue(100);
Show(); // display the progressbar
for (var i = 1; i <= dash.pb0001.MaxValue() / 2; i++) {
var a = (new Date()).valueOf();
while ((new Date()).valueOf() - a < 10) {
DoEvents();
DoEvents();
}
dash.pb0001.Value(i * 2);
}
Hide(); // hide the progressbar
}
Applies To:
ProgressBar Object
Requirements
|