Window.Close() Method

Closes a Window.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.1.dll

Syntax

public bool Close()

Returns

Type Description
Boolean

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