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

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

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

Namespace: DevExpress.XtraSplashScreen

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

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

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.

Remarks

The ShowForm method creates a splash form whose type is passed as the splashFormType parameter, and then displays this splash form. Splash forms are presented by SplashScreen and WaitForm class descendants.

To close the splash form, use the SplashScreenManager.CloseForm method.

To display a splash form in the center of your application form, pass this application form as the ShowForm method’s parentForm parameter. If this parameter is set to null, the SplashScreenManager will automatically center the splash form against your application’s main form.

If the current ShowForm method overload is called while another splash form is being displayed, an exception will be raised. To suppress this exception, use another ShowForm method overload that takes a Boolean throwExceptionIfAlreadyOpened parameter.

See Also