Hi there.
I would like to know exactly how to go about creating a progress bar showing the "transfer" complete progress?

Basically, my app connects to an FTP and downloads a file. Objects are created locally to identify what the file is, if its a directory, what the size is of the file and so on...

I know I have to create a thread for the progress bar to avoid the UI from "hanging".

I pretty much have a progress bar on the form, and have made a method/thread to "Do" the progress bar update.

The thread gets created/called when the file it about to be downloaded.

But now what? How do I make the progress bar show almost "truely" or in sync or whatever, how much of the file has been downloaded?

do I set the maximum property of the progress bar to the size of the file to be downloaded?

then what?