// A private entry point for the thread. private static void ShowForm() { _msFrmSplash = new SplashScreen(); Application.Run(_msFrmSplash); }
// Close the form without setting the parent. public static void CloseForm() { if (_msFrmSplash != null && _msFrmSplash.IsDisposed == false) { // Make it start going away. _msFrmSplash._mDblOpacityIncrement = -MDblOpacityDecrement; } _msOThread = null; // we don't need these any more. _msFrmSplash = null; }