which thread does backgroundworker completed event handler run on?
问题 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