C# progress bar not synced with download (WebClient class)
Posted
by dominiquel
on Stack Overflow
See other posts from Stack Overflow
or by dominiquel
Published on 2010-06-11T16:08:19Z
Indexed on
2010/06/11
16:12 UTC
Read the original article
Hit count: 307
Hi,
I am coding a system which has a small FTP module included inside, it's not the main feature at all, but needed...
I must link the progressbar with the WebClient class event DownloadProgressChangedEventHandler and AsyncCompletedEventHandler, the progressbar increment is ok, and the ASyncCompletedEventHandler launch a MessageBox (as intended), the problem is that the progress bar see to load too slow...
problem :
My MessageBox pop at 100% (launched by the event handler), BUT when the MessageBox pop my progress bar is only at +-80% (but the .VALUE is really 100), the first though I had was that they have added a "smooth" effect in Windows Vista which slow down the progressbar relatively to it's true value.
If any of you have experienced the same problem thanks for your help.
© Stack Overflow or respective owner