/// <summary> /// todoComment /// </summary> public void Close() { if (FSplashScreenForm != null) { // Calling Form.Close would cause exception in DebugMode: System.InvalidOperationException // you cannot call Form.Close across threads (it was created in the other thread?) FSplashScreenForm.PleaseClose(); FSplashScreenForm = null; } }