I using a backgroundWorker to execute a time consuming operation and print the result as they come an a listView. I'm basically doing something similar to the following:
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
e.Cancel = true;
// code... bla bla bla
globalItemName = someVar;
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
progressBar1.Value = e.ProgressPercentage;
It's not working, all the 'In DoWork' is printed in the output window first then 'In ProgressChanged' is printed after.