Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Regards,

Is it possible that someone will explain to me how I could make my progressBar advance in function of time to take any treatment, download or read some data?

It is possible that the same ProgressBar works for various events?

thanks
Posted
Updated 19-Aug-13 21:32pm
v2

1 solution

If you have a good estimate of how long the operation will take then you may update the progress bar using a timer (There are many examples[^]).
A better alternative is executing the time-consuming operations on separate threads and update the progress bar from the threads themselves (examples[^]).
Of course you can re-use the same progress bar for showing the progress of different operations.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900