Skip to main content
A newer version of this page is available. .
Bar

BarManager.CloseButtonClick Event

Occurs when a close button (‘x’) is clicked.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v18.2.dll

Declaration

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

Event Data

The CloseButtonClick event's data class is EventArgs.

Remarks

If the BarManager.ShowCloseButton property is set to true, a close button (‘x’) is displayed at the right edge of the main menu. By default, clicking this button has no effect. To implement specific functionality when an end-user clicks this button, you can handle the CloseButtonClick event. For instance, you can handle this event to close the currently active window that has no title, etc.

See Also