# ClosePageButtonShowMode Enum | WinForms Controls | DevExpress Documentation

# ClosePageButtonShowMode Enum

Enumerates values that specify whether Close buttons are displayed in individual tab pages, the tab control’s header, or in both.

**Namespace**: [DevExpress.XtraTab](/WindowsForms/DevExpress.XtraTab)

        **Assembly**:
        DevExpress.XtraEditors.v26.1.dll

## Declaration

- C#
- VB.NET

                        <section id="tabpanel_syntax_tabid_DevExpress.XtraTab.ClosePageButtonShowMode-csharp" role="tabpanel" data-tab="tabid-csharp" class="tab-group__tab-content tab-group__tab-content--code" style="display: block">
                            <pre><code class="lang-csharp hljs">public enum ClosePageButtonShowMode</code></pre>
                        </section>
                        <section id="tabpanel_syntax_tabid_DevExpress.XtraTab.ClosePageButtonShowMode-vb" role="tabpanel" data-tab="tabid-vb" class="tab-group__tab-content tab-group__tab-content--code" style="display: none">
                            <pre><code class="lang-vb hljs">Public Enum ClosePageButtonShowMode</code></pre>
                        </section>

## Members

| Name | Description |
| --- | --- |
| `Default` | The default behavior determined by controls.<br><br><br>For a [XtraTabControl](/WindowsForms/DevExpress.XtraTab.XtraTabControl), the Close button within the tab control’s header is displayed as specified by the control’s **HeaderButtonsShowMode** property. Close buttons in individual pages are hidden.<br><br><br>For a [TabbedView](/WindowsForms/DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView) in a [DocumentManager](/WindowsForms/DevExpress.XtraBars.Docking2010.DocumentManager), the **Default** option is equivalent to [ClosePageButtonShowMode.InActiveTabPageHeaderAndOnMouseHover](/WindowsForms/DevExpress.XtraTab.ClosePageButtonShowMode). |
| `InTabControlHeader` | The Close button is displayed in the tab control’s header, as specified by the control’s **HeaderButtonsShowMode** property. |
| `InAllTabPageHeaders` | Close buttons are displayed in all pages. The Close button in the control’s header is hidden. |
| `InActiveTabPageHeader` | A Close button is displayed in the active page. The Close button in the control’s header is hidden. |
| `InAllTabPagesAndTabControlHeader` | Close buttons are displayed in all pages and in the control’s header. The visibility of the Close button within the tab control’s header is specified by the control’s **HeaderButtonsShowMode** property. |
| `InActiveTabPageAndTabControlHeader` | Close buttons are displayed in the tab control’s header, and within the active page. The visibility of the Close button within the tab control’s header is specified by the control’s **HeaderButtonsShowMode** property. |
| `InActiveTabPageHeaderAndOnMouseHover` | Close buttons are displayed within an active tab, and within an inactive tab when the mouse is hovered over it. The visibility of the Close buttons within the tab control’s header is specified by the **HeaderButtonsShowMode** property. |

## Related API Members

The following properties accept/return **ClosePageButtonShowMode** values:

- [IDocumentGroupDefaultProperties.ActualClosePageButtonShowMode](/WindowsForms/DevExpress.XtraBars.Docking2010.Views.Tabbed.IDocumentGroupDefaultProperties.ActualClosePageButtonShowMode)
- [IDocumentGroupDefaultProperties.ClosePageButtonShowMode](/WindowsForms/DevExpress.XtraBars.Docking2010.Views.Tabbed.IDocumentGroupDefaultProperties.ClosePageButtonShowMode)
- [IDocumentGroupProperties.ClosePageButtonShowMode](/WindowsForms/DevExpress.XtraBars.Docking2010.Views.Tabbed.IDocumentGroupProperties.ClosePageButtonShowMode)
- [XtraTabbedMdiManager.ClosePageButtonShowMode](/WindowsForms/DevExpress.XtraTabbedMdi.XtraTabbedMdiManager.ClosePageButtonShowMode)
- [XtraTabControl.ClosePageButtonShowMode](/WindowsForms/DevExpress.XtraTab.XtraTabControl.ClosePageButtonShowMode)

## Remarks

The [XtraTabControl](/WindowsForms/DevExpress.XtraTab.XtraTabControl) and [XtraTabbedMdiManager](/WindowsForms/DevExpress.XtraTabbedMdi.XtraTabbedMdiManager) components support the tabbed interface. These components provide the [XtraTabControl.ClosePageButtonShowMode](/WindowsForms/DevExpress.XtraTab.XtraTabControl.ClosePageButtonShowMode) and [XtraTabbedMdiManager.ClosePageButtonShowMode](/WindowsForms/DevExpress.XtraTabbedMdi.XtraTabbedMdiManager.ClosePageButtonShowMode) properties, that control the display of Close buttons in individual tab pages and the tab control’s header. 

The **HeaderButtonsShowMode** properties provided by the XtraTabControl and XtraTabbedMdiManager components allow the Close button in the tab control’s header to be hidden. These properties have a higher priority than the **ClosePageButtonShowMode** properties.

By default, clicking Close buttons in an XtraTabControl has no effect. Handle the [XtraTabControl.CloseButtonClick](/WindowsForms/DevExpress.XtraTab.XtraTabControl.CloseButtonClick) event, to respond to button clicking. When using an XtraTabbedMdiManager component, clicking the Close button hides the corresponding page (form).

See Also

[XtraTabControl.ClosePageButtonShowMode](/WindowsForms/DevExpress.XtraTab.XtraTabControl.ClosePageButtonShowMode)

[XtraTabControl.HeaderButtonsShowMode](/WindowsForms/DevExpress.XtraTab.XtraTabControl.HeaderButtonsShowMode)

[XtraTabbedMdiManager.ClosePageButtonShowMode](/WindowsForms/DevExpress.XtraTabbedMdi.XtraTabbedMdiManager.ClosePageButtonShowMode)

[XtraTabbedMdiManager.HeaderButtonsShowMode](/WindowsForms/DevExpress.XtraTabbedMdi.XtraTabbedMdiManager.HeaderButtonsShowMode)

[CloseButtonClick](/WindowsForms/DevExpress.XtraTab.XtraTabControl.CloseButtonClick)

[DevExpress.XtraTab Namespace](/WindowsForms/DevExpress.XtraTab)