public void ShowSplashScreen() { if (InvokeRequired) { // We're not in the UI thread, so we need to call BeginInvoke BeginInvoke(new SplashShowCloseDelegate(this.ShowSplashScreen)); return; } Show(); Application.Run(this); }