HeaderPane
Main
Hide
Share Link
Print

TabCloseButtonClicked Event, SftTabs Class

Occurs when a tab's close button is clicked.

Class: SftTabs
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public event TabEventHandler TabCloseButtonClicked;
Public Event TabCloseButtonClicked As TabEventHandler

Comments

Occurs when a tab's close button is clicked.

The control does not remove the tab; the application does, typically by calling the tab's TabClass.Remove method.

Examples

C# View entire sample code

            DumpValues("Scrolled", e);
        }

        private void sftTabs1_PartClicked(object sender, TabPartClickedEventArgs e) {
            DumpValues("PartClicked", e);
        }

        private void sftTabs1_TabCloseButtonClicked(object sender, TabEventArgs e) {
            DumpValues("TabCloseButtonClicked", e);

            // the control does not remove the tab, the application does
            e.Tab.Remove();
        }

        private void sftTabs1_CloseButtonClicked(object sender, EventArgs e) {
            DumpValues("CloseButtonClicked", e);

VB.NET View entire sample code

Private Sub SftTabs1_Scrolled(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabScrolledEventArgs) Handles SftTabs1.Scrolled
    DumpValues("Scrolled", e)
End Sub

Private Sub SftTabs1_PartClicked(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabPartClickedEventArgs) Handles SftTabs1.PartClicked
    DumpValues("PartClicked", e)
End Sub

Private Sub SftTabs1_TabCloseButtonClicked(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabEventArgs) Handles SftTabs1.TabCloseButtonClicked
    DumpValues("TabCloseButtonClicked", e)

    ' the control does not remove the tab, the application does
    e.Tab.Remove()
End Sub

Private Sub SftTabs1_CloseButtonClicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.CloseButtonClicked

See Also SftTabs Class | Classes | SftTabs/NET 3.0