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

TabFormControlBase.ShowTabCloseButtons Property

Gets or sets the visibility of close buttons in tabs.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(true)]
public bool ShowTabCloseButtons { get; set; }

#Property Value

Type Default Description
Boolean true

true if the close buttons are visible in tabs; otherwise, false.

#Remarks

The TabFormPage can display the Close button. Clicking it, an end-user can hide the page from the TabForm. See the figure below.

TabFormPale_CloseButton

The ShowTabCloseButtons property specifies the visibility of the Close button for all TabFormPage objects of the TabForm. You can override this setting for a particular page with the TabFormPage.ShowCloseButton property.

After the Close button is clicked, the TabFormControlBase.PageClosing event fires, allowing you to cancel the action if necessary.

See Also