The usual way is if you know how much data you are writing to the file to update the progress bar when you are a certain percentage of the way through.
If you don't know how long its gong to take to write the data to the file, or how much data there is then just start the progress bar from zero again and keep going till the writing has finished would be one way.
/- Sam Judson : Wrox Technical Editor -/
|