HeaderPane
Main
Hide
Share Link
Print

SwitchingDisabled Event, SftTabs Class

Occurs when the user clicks a disabled tab.

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

Syntax

public event TabEventHandler SwitchingDisabled;
Public Event SwitchingDisabled As TabEventHandler

Comments

Occurs when the user clicks a disabled tab.

Examples

C# View entire sample code

        private void sftTabs1_Switching(object sender, TabSwitchingEventArgs e) {
            DumpValues("Switching", e);

            // e.Cancel = true; would keep the current tab
        }

        private void sftTabs1_SwitchingDisabled(object sender, TabEventArgs e) {
            DumpValues("SwitchingDisabled", e);
        }

        private void sftTabs1_Switched(object sender, TabSwitchedEventArgs e) {
            DumpValues("Switched", e);
        }

        private void sftTabs1_SelectedIndexChanged(object sender, EventArgs e) {
            DumpValues("SelectedIndexChanged", e);

VB.NET View entire sample code

End Sub

Private Sub SftTabs1_Switching(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabSwitchingEventArgs) Handles SftTabs1.Switching
    DumpValues("Switching", e)

    ' e.Cancel = True would keep the current tab
End Sub

Private Sub SftTabs1_SwitchingDisabled(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabEventArgs) Handles SftTabs1.SwitchingDisabled
    DumpValues("SwitchingDisabled", e)
End Sub

Private Sub SftTabs1_Switched(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabSwitchedEventArgs) Handles SftTabs1.Switched
    DumpValues("Switched", e)
End Sub

See Also SftTabs Class | Classes | SftTabs/NET 3.0