Skip to main content
Bar

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

BarManager.CloseButtonClick Event

Fires when the close button is clicked.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Click")]
public event EventHandler CloseButtonClick

#Event Data

The CloseButtonClick event's data class is EventArgs.

#Remarks

If the ShowCloseButton option is enabled, the close button is displayed in the main menu.

image

The close button does not have a default action. Handle the CloseButtonClick event to respond to a click on the button. For instance, you can close the active window.

See Also