I have a problem, I added a splash screen. The splash screen appears. But it does not disappear after it's done and the main form has loaded.
static void Main()
{
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    Thread thread = new Thread(new ThreadStart(showSplashScreen));
    thread.IsBackground = true;
    thread.Start();
    Thread.Sleep(1000);
    Main main = new Main();
    Application.Run(main);
    thread.Abort();
}
private static void showSplashScreen()
{
    Application.Run(new SplashForm());
}