SplashScreenManager.CloseForm(Boolean, Int32, Form, Boolean) Method
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.
Namespace: DevExpress.XtraSplashScreen
Assembly: DevExpress.XtraEditors.v19.2.dll
Declaration
public static void CloseForm(
bool throwExceptionIfAlreadyClosed,
int closingDelay,
Form parent,
bool waitForSplashFormClose
)
Parameters
Name | Type | Description |
---|---|---|
throwExceptionIfAlreadyClosed | Boolean | true to raise an exception if no splash form is currently open; otherwise, false. |
closingDelay | Int32 | An Int32 value that is the number of milliseconds that elapses before the splash form is closed. |
parent | Form | A Form object that should be activated after the splash form is closed. |
waitForSplashFormClose | Boolean | true to block the current thread until the splash form has actually been closed; otherwise, false. |
Remarks
The CloseForm method destroys a form that has been displayed using the SplashScreenManager.ShowForm method.