Skip to main content
A newer version of this page is available. .

SplashScreenManager.ShowForm(Form, Type, Boolean, Boolean, Boolean, ParentFormState) Method

Creates and displays the specified SplashScreen or WaitForm descendant, centering it against another form.

The method’s parameter allows you to disable the parent form while the splash form is displayed.

Namespace: DevExpress.XtraSplashScreen

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public static void ShowForm(
    Form parentForm,
    Type splashFormType,
    bool useFadeIn,
    bool useFadeOut,
    bool throwExceptionIfAlreadyOpened,
    ParentFormState parentFormDesiredState
)

Parameters

Name Type Description
parentForm Form

A Form relative to which the displayed splash form is positioned. This parameter is in effect when displaying WaitForms.

splashFormType Type

The type of splash form to be displayed.

useFadeIn Boolean

true, to use the fade-in effect when opening the form; otherwise, false.

useFadeOut Boolean

true, to use the fade-out effect when closing the form; otherwise, false.

throwExceptionIfAlreadyOpened Boolean

true to throw an exception if another splash form has already been opened; false to suppress this exception.

parentFormDesiredState DevExpress.XtraSplashScreen.ParentFormState

A ParentFormState enumeration value that specifies whether the parent form is enabled while the splash form is displayed. This parameter is in effect when displaying WaitForms.

Remarks

To disable the parent form while the splash form is displayed, set the parentFormDesiredState parameter to ParentFormState.Locked.

See Also