Back to Devexpress

How to: Display Custom Button Within XtraTab Control

windowsforms-9530-controls-and-libraries-editors-and-simple-controls-examples-how-to-display-custom-button-within-xtratab-control.md

latest638 B
Original Source

How to: Display Custom Button Within XtraTab Control

  • Oct 25, 2019

By default, only the Next and Prev buttons are displayed within the tab header panel. The following sample code demonstrates how to enable the DevExpress.XtraTab.TabButtons.Close option so that the Close button can be displayed within the tab header panel as well.

csharp
xtraTabControl1.HeaderButtons |= DevExpress.XtraTab.TabButtons.Close;
vb
XtraTabControl1.HeaderButtons = XtraTabControl1.HeaderButtons Or _
  DevExpress.XtraTab.TabButtons.Close