The qProgress project is a Progress Bar Form that
uses a task-based system to indicate progress. It is useful
for showing Progress where the time to process code is hard to
quantify. You can add Tasks during the process and the
Progress Bar will adjust calculations accordingly. Each Task
can have Subtasks and these can also be added to during the process.
Additional Tasks and Subtasks are used in the
progress process but are not added to the total Tasks or
Subtasks. When the Progress Bar is reset additional Tasks and
Subtasks are removed.
You can use the Progress Bar by adding frmProgress
to your project. A demonstration project is included that
shows an number of process simulations.
I am aware that some people would like to make the
form stay on top but I have not included the code for this so that
people then have the option to include it themselves.
| AddSubTask Method |
| Parameters |
Optional lValue As Long = 1 |
| Description |
Adds uncompleted Subtask(s) to
the current Task. These are not persistent. |
| AddTask Method |
| Parameters |
Optional lValue As Long = 1 |
| Description |
Adds uncompleted Tasks. |
| Description Property
[Read/Write] |
| Type |
String |
| Description |
Change the Caption of the
Progress label. |
| ProgressBorder Property
[Read/Write] |
| Type |
Enum: None, Raised, Sunk, Frame |
| Description |
Changes the Border style of the
Progress Bar. |
| Reset Method |
| Parameters |
None |
| Description |
Resets all Task/SubTask values to
zero. Clears Progress Bar |
| SubTaskComplete Method |
| Parameters |
None |
| Description |
Increments the Completed SubTasks
by one. |
| TaskComplete Method |
| Parameters |
None |
| Description |
Increments the Completed Tasks by
one. |
| Task Number Property [Read] |
| Type |
Long |
| Description |
Returns the number of the current
Task. |
| Title Property [Read/Write] |
| Type |
String |
| Description |
Returns/Sets the Titlebar caption
of the Progress Bar form. |
| TotalSubtasks Property
[Read/Write] |
| Type |
Long |
| Description |
Sets the initial number of
SubTasks for the current Task. |
| TotalTasks Property
[Read/Write] |
| Type |
Long |
| Description |
Sets the initial number of Tasks. |