• 0

C# and WebClient


Question

I'm currently using the WebClient (DownloadFile) component in C# to download a file from an http location, and unzip it. However, since the file I'm downloading is around 4MBs, it takes a bit to download on my DSL, especially when the server is slow. The application is unresponsive until it's done downloading, which is kind of annoying. Is there a way to do something so the program is still responsive while it's downloading? (simply for show, there is no other action planned while it is downloading).

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

...unless you have code that is supposed to execute while/after the program's main window is closing, in which case calling Close() on the main window is probably what you want to do instead.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.