Tabs can show their own close button. The SftTabs.TabCloseButton property defines when tabs show a close button (see TabCloseButtonEnum): never, on the selected tab and on the tab under the mouse cursor, or on every tab.
A tab can override the control's setting using its TabClass.CloseButton property (see TabCloseButtonOptionalEnum), so individual tabs can have a close button or do without one. The TabClass.CloseButtonEnabled property defines whether a tab's close button is enabled.
When the user clicks the close button of a tab, the TabCloseButtonClicked event occurs. The control does not remove the tab; the application does, typically by calling the tab's TabClass.Remove method.
C#
private void sftTabs1_TabCloseButtonClicked(object sender, TabEventArgs e) { e.Tab.Remove(); }
VB
Private Sub SftTabs1_TabCloseButtonClicked(sender As Object, e As TabEventArgs) Handles SftTabs1.TabCloseButtonClicked e.Tab.Remove() End Sub
Ctrl+F4 acts as the close button of the selected tab (see Keyboard Interface).
The SftTabs.TabCloseButtonToolTip property defines the tooltip text of the tabs' close buttons.
See Also Tab Control Components