HeaderPane
Main
Hide
Share Link
Print

PartClicked Event, SftTabs Class

Occurs when a part of a tab is clicked.

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

Syntax

public event TabPartClickedEventHandler PartClicked;
Public Event PartClicked As TabPartClickedEventHandler

Comments

Occurs when a part of a tab is clicked.

Examples

C# View entire sample code

            DumpValues("SelectedIndexChanged", e);
        }

        private void sftTabs1_Scrolled(object sender, TabScrolledEventArgs e) {
            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();

VB.NET View entire sample code

Private Sub SftTabs1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.SelectedIndexChanged
    DumpValues("SelectedIndexChanged", e)
End Sub

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

See Also SftTabs Class | Classes | SftTabs/NET 3.0