Back to Devexpress

BarManager.ShowCloseButton Property

windowsforms-devexpress-dot-xtrabars-dot-barmanager-674e6dfc.md

latest1.7 KB
Original Source

BarManager.ShowCloseButton Property

Gets or sets whether the close button is displayed in the main menu.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Appearance")]
public bool ShowCloseButton { get; set; }
vb
<DXCategory("Appearance")>
<DefaultValue(False)>
Public Property ShowCloseButton As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the close button is displayed; otherwise, false.

|

Remarks

Enable the ShowCloseButton option to display the close button in the main menu.

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.

In an MDI application, this button is hidden when a child form is maximized.

See Also

CloseButtonClick

BarManager Class

BarManager Members

DevExpress.XtraBars Namespace