SyntaxFix
Write A Post
Hire A Developer
Questions
Try using the BackgroundWorker class. You give it delegates for what to run, and to be notified when work has finished. There is an example on the MSDN page that I linked to.