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

SplashScreenManager.ShowOverlayForm(Control) Method

Shows an Overlay Form over the specified control with the default options.

Namespace: DevExpress.XtraSplashScreen

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

public static IOverlaySplashScreenHandle ShowOverlayForm(
    Control owner
)

Parameters

Name Type Description
owner Control

A Control that should be overlapped by an Overlay Form.

Returns

Type Description
DevExpress.XtraSplashScreen.IOverlaySplashScreenHandle

An IOverlaySplashScreenHandle object that specifies a handle for the shown Overlay Form that is used to close the Overlay Form.

Remarks

Call the ShowOverlayForm method to show an Overlay Form over the owner control using the default options. The ShowOverlayForm method returns an IOverlaySplashScreenHandle object. You should pass this handle to the SplashScreenManager.CloseOverlayForm method to close the opened Overlay Form.


using DevExpress.XtraSplashScreen;
//...
IOverlaySplashScreenHandle ShowProgressPanel() {
  return SplashScreenManager.ShowOverlayForm(this);
}
void CloseProgressPanel(IOverlaySplashScreenHandle handle) {
  if(handle != null)
    SplashScreenManager.CloseOverlayForm(handle);
}
//...
IOverlaySplashScreenHandle handle = null;
try {
  handle = ShowProgressPanel();
  // Now perform the long-running operation while
  // the Overlay Form overlaps the current form.
}
finally {
  CloseProgressPanel(handle);
}
See Also