Defines the selected tab.
Class: SftTabs
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET
public TabClass SelectedTab { get; set; }
Public Property SelectedTab As TabClassThe tab, or null for no selection.
Defines the selected tab.
private void sftTabs1_TabCloseButtonClicked(object sender, TabEventArgs e) {
// the control does not remove the tab, the application does
tabImages.Remove(e.Tab);
e.Tab.Remove();
}
private void sftTabs1_CloseButtonClicked(object sender, EventArgs e) {
// the control's Close button removes the selected tab in this sample
TabClass tab = sftTabs1.SelectedTab;
if (tab != null) {
tabImages.Remove(tab);
tab.Remove();
}
}
private void sftTabs1_MinimizeButtonClicked(object sender, EventArgs e) {Private Sub SftTabs1_TabCloseButtonClicked(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabEventArgs) Handles SftTabs1.TabCloseButtonClicked ' the control does not remove the tab, the application does tabImages.Remove(e.Tab) e.Tab.Remove() End Sub Private Sub SftTabs1_CloseButtonClicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.CloseButtonClicked ' the control's Close button removes the selected tab in this sample Dim tab As TabClass = SftTabs1.SelectedTab If tab IsNot Nothing Then tabImages.Remove(tab) tab.Remove() End If End Sub Private Sub SftTabs1_MinimizeButtonClicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.MinimizeButtonClicked
See Also SftTabs Class | Classes | SftTabs/NET 3.0