NET2 Download from FTP with Progress

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
 
O

Otis Mukinfus

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top