VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Calculate Remaining Time for a ProgressBar to Complete

KCain  (1 Submission)   Math/Dates   Visual Basic 3.0   Beginner   Wed 3rd February 2021

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%

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

Assumes
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%

Rate Calculate Remaining Time for a ProgressBar to Complete (12(12 Vote))

Download Calculate Remaining Time for a ProgressBar to Complete

Calculate Remaining Time for a ProgressBar to Complete Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters