Results 1 to 1 of 1

Thread: Asynchronous File Download Using WebClient

  1. #1

    Thread Starter
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Asynchronous File Download Using WebClient

    VB version here.

    Something similar may have been posted before but, regardless, the attached project demonstrates how to download a file asynchronously, i.e. on a secondary thread to maintain a responsive UI, while displaying progress with download speed and time remaining.

    Note that the solution attached to this post was converted from the VB version using Instant C# from Tangible Software Solutions.

    EDIT: I have made a small change to the project. Instant C# converted some event handler attachments and placed the code in the designer code file. This didn't stop the project running but those for the WebClient prevented the form displaying in the designer, because the 'downloader' field was not declared in that file. I moved those two lines out of the designer code file and into the Load event handler and the form will now display correctly in the designer.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width