SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Occurs when the user starts dragging an object.
Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public event DragDetectedEventHandler DragDetected;
Public Event DragDetected As DragDetectedEventHandler
Occurs when the user starts dragging an object.
This event is only available when the SftTree.DragStyle property is defined to detect drag operations (DragStyleEnum.Detect).
The DragStarting event is only used to signal that the user has requested a drag & drop operation. The actual implementation of the drag & drop operation is delegated to the container, which must support drag & drop between controls.
The Handled field of the DragDetectedEventArgs class instance must be set to True, if the application performs drag & drop (usually by invoking SftTree.DoDragDrop), otherwise the tree control's built-in action (such as column reordering) will also be performed.
sftTree1.AutoExpandDragDrop = true; sftTree1.AutoExpandArea = AutoExpandAreaEnum.AllColumns; sftTree1.Initializing = false; // We also need to set up the text box so we can drop data textBox1.AllowDrop = true; } private void sftTree1_DragDetected(object sender, DragDetectedEventArgs e) { Debug.Print("We're starting to drag something"); DumpValues(e); // based on what we are dragging, make up a string string s = ""; s = e.Area.ToString() + " in "; s += e.Item.UsageLocation.ToString() + ": ";
sftTree1.AutoExpandDragDrop = True sftTree1.AutoExpandArea = AutoExpandAreaEnum.AllColumns sftTree1.Initializing = False ' We also need to set up the text box so we can drop data textBox1.AllowDrop = True End Sub Private Sub sftTree1_DragDetected(ByVal sender As Object, ByVal e As Softelvdm.SftTreeNET.DragDetectedEventArgs) Handles sftTree1.DragDetected Debug.Print("We're starting to drag something") DumpValues(e) ' based on what we are dragging, make up a string Dim s As String = "" s = e.Area.ToString() & " in " s = s & e.Item.UsageLocation.ToString() & ": "
See Also SftTree Class | Classes | SftTree/NET 2.0