VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Calculate Remaining Time for a ProgressBar to Complete

by KCain (1 Submission)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (11 Votes)

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.
Code 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

Download Calculate Remaining Time for a ProgressBar to Complete

Download Calculate Remaining Time for a ProgressBar to Complete (4 KB)

Calculate Remaining Time for a ProgressBar to Complete Comments

No comments have been posted about Calculate Remaining Time for a ProgressBar to Complete. Why not be the first to post a comment about Calculate Remaining Time for a ProgressBar to Complete.

Post your comment

Subject:
Message:
0/1000 characters