Skip to main content
Bar

BarManager.CloseButtonClick Event

Fires when the close button is clicked.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

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