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 whether the event handler handled the event. This value can be modified by the DragDetected event handler.
Class: DragDetectedEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public bool Handled;
Public Handled As Boolean
Defines whether the event handler handled the event. This value can be modified by the DragDetected event handler.
Default processing normally performed by the tree control should no longer take place (True), otherwise False and the tree control performs its default actions for the current event.
Instead of setting Handled to True, an application can call the SoftelvdmUserControl.CancelMode method while handling an event, which has the effect of setting Handled to True.
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 "; } e.Handled = true; sftTree1.DoDragDrop(s, DragDropEffects.Copy); } // The textbox just copies data in this example private void textBox1_DragEnter(object sender, DragEventArgs e) { Debug.Write("*** textBox1 DragEnter "); DumpValues(e);
If e.RowHeader.Text = "" Then s = s & "(empty row header) " Else s = s & e.RowHeader.Text & " " End If ElseIf Not e.Item Is Nothing Then s = s & " an item " End If e.Handled = True sftTree1.DoDragDrop(s, DragDropEffects.Copy) End Sub Private Sub textBox1_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles textBox1.DragEnter Debug.Write("*** textBox1 DragEnter ") DumpValues(e) If e.Data.GetDataPresent(DataFormats.UnicodeText) Then
See Also DragDetectedEventArgs Class | Classes | SftTree/NET 2.0