Provides data for the SftTabs.Switching event.
Set Cancel to True to keep the current tab, or TabSwitchingEventArgs.NewIndex to select another tab instead.
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET
Inheritance
public class TabSwitchingEventArgs : System.ComponentModel.CancelEventArgs;
Public Class TabSwitchingEventArgs
Inherits System.ComponentModel.CancelEventArgsThis class cannot be instantiated.
![]() ![]() | Cancel | Gets or sets a value indicating whether the event should be canceled. |
![]() | CurrentIndex | The position of the currently selected tab, or -1. |
![]() | CurrentTab | The currently selected tab, or null. |
![]() | NewIndex | Defines the position of the tab to select, or -1. |
![]() | NewTab | The tab about to be selected, or null. |
![]() ![]() ![]() | Empty | Provides a value to use with events that do not have event data. |
![]() ![]() | Equals | Determines whether the specified object is equal to the current object. |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
![]() ![]() | GetHashCode | Serves as the default hash function. |
![]() ![]() | GetType | Gets the Type of the current instance. |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. |
![]() ![]() ![]() | ReferenceEquals | Determines whether the specified Object instances are the same instance. |
![]() ![]() | ToString | Returns a string that represents the current object. |
}
private void buttonClear_Click(object sender, EventArgs e) {
listView1.Items.Clear();
strLastEvent = "";
fLastEventDup = false;
}
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);
End Sub
Private Sub ButtonClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonClear.Click
ListView1.Items.Clear()
strLastEvent = ""
fLastEventDup = False
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)See Also Classes | SftTabs/NET 3.0