コード例 #1
0
ファイル: Program.cs プロジェクト: telerik/winforms-sdk
        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();

            //run form - time taking operation
            MainForm mainForm = new MainForm();

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