Example #1
0
        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
            RadForm1 mainForm = new RadForm1();

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