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); }
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); }