[Visual Basic] Private Sub SysMenutree_DragEnter( _
ByVal sender As Object, _
ByVal e As DragEventArgs _
) Handles _
SysMenuTree.DragEnter
[Visual Basic] Private Sub SysMenutree_DragEnter(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles SysMenuTree.DragEnter
If (e.Data.GetDataPresent("System.Windows.Forms.TreeNode")) Then
If (e.KeyState And CtrlMask) = CtrlMask Then
e.Effect = DragDropEffects.Copy
Else
e.Effect = DragDropEffects.Move
End If
Else
e.Effect = DragDropEffects.None
End If
End Sub
Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition