Пример #1
0
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //show splash
            Thread splashThread = new Thread(new ThreadStart(
                                                 delegate
            {
                splashForm = new SplashForm();
                Application.Run(splashForm);
            }
                                                 ));

            splashThread.SetApartmentState(ApartmentState.STA);
            splashThread.Start();

            MainForm mainForm = new MainForm();

            mainForm.Load += mainForm_Load;
            Application.Run(mainForm);
        }