I have a GUI application that needs to run long calculations (think a minute or more) and the way that it deals with this is by giving the calculation to a background worker. (this part is fine)
The question I have is if I do something like:
this.backgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.doSomethingElse);
is doSomethingElse going to be run on the main UI thread or whatever in the thread pool the background worker ran on?
thank for any help you can provide.
It’s going to be run in the same thread that BackgroundWorker is in, ie most usually the UI thread.