DownloadProgress Event

Topics: Updater Application Block
Apr 15, 2006 at 4:14 AM
originally posted by: Steph74

Hello

I'm using the UNCDownloader class provided in the UAB documentation and all is ok with it except two things :

I'm trying to create a waiting form for the downloading progress. For that I'm using all 4 available events (DownloadStarted, DownloadError, DownloadCompleted and DownloadProgress). They are all working fine except the DownloadProgress event which never occurs... Do you know what could be the problem ?

Second, less important, do you know why there's a Thread.Sleep(TimeSpan.FromMinutes(1)) between each file to be transfered (I've removed this line, but I'm wondering why it was there) ?

Thanks in advance

Stephane
Apr 15, 2006 at 5:32 AM
originally posted by: Apocwhen

I had the same situation and I've updated the UNCDownloader that I use:
You can download the C# version from here:

http://www.technical-ideas.com/other/UNCDownloader.txt
Apr 15, 2006 at 6:17 AM
originally posted by: Steph74

Thanks a lot !

Indeed, half of the code was missing (event handler and files size calculation)...

My progress bar is working fine now !

Just have to find now why nothing is working on a client computer ;-)

Thanks again

Stephane