How can a new Form be run on a different thread in C#?
问题 I'm just trying to run a new thread each time a button click even occurs which should create a new form. I tried this in the button click event in the MainForm: private void button1_Click(object sender, EventArgs e) { worker1 = new Thread(new ThreadStart(thread1)); worker2 = new Thread(new ThreadStart(thread2)); worker1.Start(); worker2.Start(); } private void thread1() { SubForm s = new SubForm(); s.Show(); } private void thread2() { SubForm s = new SubForm(); s.Show(); } The code in the