示例#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 Form1();
            Application.Run(frm);
        }
示例#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 Form1() ;
            Application.Run(frm);
        }