public class MyContext : ApplicationContext { [STAThread] static void Main() { MyContext context = new MyContext(); Application.Run(context); } MyContext() { Form1 f1 = new Form1(); f1.Show(); } }To close the application you will need a 'Application.ExitThread()' somewhere.....
private void button_Click(object sender, EventArgs e) { System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(RunForm)); t.Start(); } private void RunForm() { Form f1 = new Form(); f1.ShowDialog(); }