The progress bar needs to be on the UI thread (the form) and you can use a BackgroundWorker to do the downloading of the files. BW's can report progress via an event and you use that to pass the percentage from the background thread to the UI thread
__________________
Currently using: VS 2005 & 2008 Pro w/sp1 on Win7 Ultimate x64.

There are 3 kinds of people in the world: Those who can count and those who can't.
4 out of 3 people have trouble with fractions.
Windows has a 64 bit GUI for a set of 32 bit extensions on a 16 bit shell for an 8 bit OS using a 4 bit kernel made by a 2 bit company that can't stand 1 bit of competition.
|