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
Defines which cell is being dragged. May be null/Nothing indicating that no cell is associated with this event.
Class: DragDetectedEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public readonly CellClass Cell;
Public ReadOnly Cell As CellClass
Defines which cell is being dragged. May be null/Nothing indicating that no cell is associated with this event.
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() + ": "; if (e.Cell != null) { if (e.Cell.Text == "") s += "(empty cell) "; else s += e.Cell.Text + " "; } else if (e.RowHeader != null) { if (e.RowHeader.Text == "") s += "(empty row header) "; else s += e.RowHeader.Text + " "; } else if (e.Item != null) { s += " an item ";
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() & ": " If Not e.Cell Is Nothing Then If e.Cell.Text = "" Then s = s & "(empty cell) " Else s = s & e.Cell.Text & " " End If ElseIf Not e.RowHeader Is Nothing Then If e.RowHeader.Text = "" Then
See Also DragDetectedEventArgs Class | Classes | SftTree/NET 2.0