Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Window.Close() Method

Closes a Window.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public bool Close()

#Returns

Type Description
Boolean

Always false.

#Remarks

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