BackgroundWorker and ProgressBar
I want to display the status in a ProgressBar when copying large files across the network. I am using FileInfo.CopyTo method within the DoWork Method of the BackgroundWorker class (please see the code below). How am I able to fire events while the copying is taking place to update the ProgressBar. The problem is that the execution enters FileInfo.CopyTo method and does not leave until the process is complete.
Hope this makes sense.
privatevoid backgroundWorker_DoWork(object sender, DoWorkEventArgs e) { BackgroundWorker worker = senderas BackgroundWorker;
|

