static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); frmBootstrap f = new frmBootstrap(); f.Visible = false; Application.Run(f); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); frmBootstrap f = new frmBootstrap(); f.Visible = false; if (!f.IsDisposed) // our single instance check will exit the constructor early { Application.Run(f); } }