Search Tools Links Login

Calculate Remaining Time for a ProgressBar to Complete


This calculates the average time taken for a progressbar to get to its current percentage and calculates how much time it will take for the progressbar to reach 100%

Original Author: KCain

Inputs

ProgressBar Value, ProgressBar Max, Percentage(includes ProgressBar percentage calculation function)

Assumptions

All you do is:
1.) Declare a variable in the (General) area of your form as a string
2.) When the progressbar starts call 'BeginProgress'
3.) When ever you make the progressbars value increase get the percentage with the 'getPercentage' function then call the 'TimeRemaining' function
4.) Voila! You will have the approxamate remaining time for your progressbar.

Returns

Returns the percentage completed for a progressbar and the how much time is remaining for a progressbar to get to 100%

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 75 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD1097210262000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 4,246 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.