Example #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.DoEvents();

            CustomExceptionHandler eh = new CustomExceptionHandler();

            Application.ThreadException += new ThreadExceptionEventHandler(eh.OnThreadException);

            SplashForm splash = new SplashForm();

            try
            {
                splash.Show();
            }
            catch (Exception)
            {
            }

            Thread.Sleep(4000);

            splash.Close();

            frm = new MainForm();
            Application.Run(frm);
        }
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.DoEvents();

            CustomExceptionHandler eh = new CustomExceptionHandler();

            Application.ThreadException += new ThreadExceptionEventHandler(eh.OnThreadException);

            SplashForm splash = new SplashForm() ;

            try
            {
                splash.Show();
            }
            catch (Exception)
            {
            }

            Thread.Sleep(4000);

            splash.Close() ;

            frm = new MainForm() ;
            Application.Run(frm);
        }