NET2 Download from FTP with Progress

  • Thread starter Thread starter Jared
  • Start date Start date
J

Jared

Hi,

I have following code, but it is not capable of reading file length-and
therfore cant show progress, has anyone else found solution for this prob...

WC.Credentials = New Net.NetworkCredential("test", "test")

WC.DownloadFileAsync(New Uri("ftp://256.256.256.256/fileX.exe"),
"c:\setup.exe")



WC_DownloadProgressChanged Event always return legnth of -1

Thanks
Jared
 
Hi,

I have following code, but it is not capable of reading file length-and
therfore cant show progress, has anyone else found solution for this prob...

WC.Credentials = New Net.NetworkCredential("test", "test")

WC.DownloadFileAsync(New Uri("ftp://256.256.256.256/fileX.exe"),
"c:\setup.exe")



WC_DownloadProgressChanged Event always return legnth of -1

Thanks
Jared
Jared,

When I have a situation where it is difficult to measure progress I set the
progress bar to Marquee mode. If you do that it will run as a marquee until you
tell it to stop.

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
 
Back
Top