Skip to main content
.NET Framework 4.5.2+

Window.Close() Method

Closes a Window.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.1.dll

NuGet Package: DevExpress.ExpressApp


public bool Close()


Type Description

Always false.


The Close method is overridden in Window class descendants. As a method of the Window class, it returns false. Use this overridden method of the WinWindow class to close a Window in Windows Forms applications. For example, add a Cancel Action to a Window Controller and call the Close method of the Controller’s WindowController.Window in the Action’s SimpleAction.Execute event handler.

See Also