What is the difference between BackgroundWorker and Thread? In my application I am using a messaging system that communicates with the database reg
While the BackgroundWorker class isn't derived from the Thread class it enables you to manage the work a thread does much more easily than if you created and invoked the thread yourself.
It raises three key events:
DoWork - raised when the thread starts.ProgressChanged - raised to report progress to the main UI thread.RunWorkerCompleted - raised when the thread completes.With these you can monitor the work the thread is doing after you call RunWorkerAsync() to start it.