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:
Try this. It runs the new Form on its own thread with its own message queues and what not. Run this code:
new Thread(new ThreadStart(delegate { Application.Run(new Form()); })).Start();
Use Thread.CurrentThread.GetHashCode() to test that is runs on different thread.
Thread.CurrentThread.GetHashCode()