示例#1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            frmBootstrap f = new frmBootstrap();

            f.Visible = false;
            Application.Run(f);
        }
示例#2
0
        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);
            }
        }