Create a progress bar display that can be used to show the progress of a process.
Properties
In addition to the properties listed below, a Control tab provides access to certain frequently used form properties for this control. See the Form Properties topic for information on those properties.
|
|
Progress bar |
|
General |
|
|
Min |
Minimum value returned by the progress bar, from zero (default). |
|
Max |
Maximum value returned by the progress bar, typically to 100 (default). |
|
MousePointer |
The type of mouse pointer displayed when over the progress bar. Choose from 16 different types plus a custom pointer |
|
BorderStyle |
FixedSingle (default) or None. None may be used with Flat Appearance to achieve an uncaptioned rectangle of background color. |
|
Appearance |
3D or Flat. 3D is the standard Windows look. Flat results in a rectangular square of background color with a foreground color border. |
|
OLEDropMode |
Set to None (default) if the progress bar does not accept OLE drops and is to display the No Drop cursor if an OLE drop is attempted. Set to Manual, the progress bar will trigger OLE drop events, allowing programs to handle the OLE drop operation in code. |
|
Orientation |
Horizontal (Default) or Vertical progress bar. |
|
Scrolling |
Standard - Progress bar grows in chunks in the usual way. Make the progress bar at least 12 times wider than it is high for a reasonable effect. Smooth - A solid bar that grows smoothly. |
|
Enabled |
True or False. True means the object can respond to user-generated events, false prevents it from responding. We can disable a control like a progress bar if we wish it to simply display information in a read-only way. |
|
|
|
|
Picture |
|
|
MouseIcon |
Custom icon to use when the MousePointer property is set to 99. Like Visual Basic, will not load animated cursor (.ani) files. |
Tips
Set the Visible property to False to hide the progress bar until the process on which it reports agonizingly slow progress begins, and then set the Visible property to True to show the progress bar. When it is done, set the Visible property to False again.
Big fun: the progress bar displays whatever the Value is so you can make it run backwards by decrementing Value at regular intervals. Use this capability with restraint, as it is not good karma to play with people's minds by having progress bars go back and forth. Backward running progress bars are sometimes used to show de-installation or file removal progress.