A newer version of this page is available. Switch to the current version.

SplashScreenManager.CloseForm Method

Name Parameters Description
CloseForm() static none Closes the currently displayed SplashScreen or WaitForm, that has been displayed using the SplashScreenManager.ShowForm method. The method throws an exception if no splash form is currently open.
CloseForm(Boolean) static throwExceptionIfAlreadyClosed Closes the currently displayed SplashScreen or WaitForm, that has been displayed using the SplashScreenManager.ShowForm method. The method's parameter allows you to suppress an exception that is raised when no splash form is currently opened.
CloseForm(Boolean, Boolean) static throwExceptionIfAlreadyClosed, waitForSplashFormClose Closes the currently displayed SplashScreen or WaitForm, and blocks the current thread until the splash form has actually been closed. The method's parameter allows you to suppress an exception that is raised when no splash form is currently opened.
CloseForm(Boolean, Int32, Form) static throwExceptionIfAlreadyClosed, closingDelay, parent Closes the currently displayed SplashScreen or WaitForm after a specified delay. Allows you to select a form that should be subsequently activated, and suppress an exception that is raised when no splash form is currently opened.
CloseForm(Boolean, Int32, Form, Boolean) static throwExceptionIfAlreadyClosed, closingDelay, parent, waitForSplashFormClose Closes the currently displayed SplashScreen or WaitForm after a specified delay, and blocks the current thread until the splash form has actually been closed. Allows you to select a form that should be subsequently activated, and suppress an exception that is raised when no splash form is currently opened.
CloseForm(Boolean, Int32, Form, Boolean, Boolean) static throwExceptionIfAlreadyClosed, closingDelay, parent, waitForSplashFormClose, allowUseInDT Closes the currently displayed SplashScreen or WaitForm. This member supports the internal infrastructure, and is not intended to be used directly from your code.