HeaderPane
Main
Hide
Share Link
Print

DragDetected Event, SftTabs Class

Occurs when the user starts dragging a tab (SftTabs.DragStyle property).

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

Syntax

public event TabDragDetectedEventHandler DragDetected;
Public Event DragDetected As TabDragDetectedEventHandler

Comments

Occurs when the user starts dragging a tab (SftTabs.DragStyle property).

Examples

C# View entire sample code

            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);

            // e.Handled is left False, so the control lets the user move the tab (AllowReordering property)
        }

        private void sftTabs1_TabReordered(object sender, TabReorderedEventArgs e) {
            DumpValues("TabReordered", e);
        }

VB.NET View entire sample code

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
    DumpValues("DragDetected", e)

    ' e.Handled is left False, so the control lets the user move the tab (AllowReordering property)
End Sub

Private Sub SftTabs1_TabReordered(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabReorderedEventArgs) Handles SftTabs1.TabReordered
    DumpValues("TabReordered", e)

See Also SftTabs Class | Classes | SftTabs/NET 3.0