private static void CloseFormInternal()
 {
     if (splashForm != null)
     {
         splashForm.Close();
         splashForm = null;
     }
     ;
 }
        public static void ShowSplashScreen()
        {
            // Make sure it is only launched once.
            if (splashForm != null)
            {
                return;
            }
            splashForm = new FormSplash();
            Thread thread = new Thread(new ThreadStart(FormSplash.ShowForm));

            thread.IsBackground = true;
            thread.SetApartmentState(ApartmentState.STA);
            thread.Start();
        }