I want to create a new instance of a form in a BackgroundWorker. I’ve noticed that when I do this, the newly launched form freezes.

Why does this form freeze? How can I get around this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s freezing because you’re creating the form in the wrong thread – there’s no event loop running in the background thread.
You should only create or touch UI elements in the UI thread.
BackgroundWorkerprovides some hooks for this, or you can useControl.Invoke/BeginInvoke.