HeaderPane
Main
Hide
Share Link
Print

MinimizeButtonClicked Event, SftTabs Class

Occurs when the control's Minimize button is clicked.

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

Syntax

public event EventHandler MinimizeButtonClicked;
Public Event MinimizeButtonClicked As EventHandler

Comments

Occurs when the control's Minimize button is clicked.

Examples

C# View entire sample code

            // the control's Close button removes the selected tab in this sample
            TabClass tab = sftTabs1.SelectedTab;
            if (tab != null)
                tab.Remove();
        }

        private void sftTabs1_MinimizeButtonClicked(object sender, EventArgs e) {
            DumpValues("MinimizeButtonClicked", e);
        }

        private void sftTabs1_RestoreButtonClicked(object sender, EventArgs e) {
            DumpValues("RestoreButtonClicked", e);
        }

        private void sftTabs1_DragDetected(object sender, TabDragDetectedEventArgs e) {
            DumpValues("DragDetected", e);

VB.NET View entire sample code

    ' the control's Close button removes the selected tab in this sample
    Dim tab As TabClass = SftTabs1.SelectedTab
    If tab IsNot Nothing Then
        tab.Remove()
    End If
End Sub

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

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

Private Sub SftTabs1_DragDetected(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabDragDetectedEventArgs) Handles SftTabs1.DragDetected

See Also SftTabs Class | Classes | SftTabs/NET 3.0