/// <summary> /// Invokes the splash "screen" to close.. /// </summary> public static void CloseFormSplash() { formSplash.Invoke(new MethodInvoker(() => { using (formSplash) { formSplash.Close(); formSplash = null; } })); while (!splashThread.Join(100)) { Application.DoEvents(); } }