TreeView.DragIcon = ccNoDrop

Why can't I just set the icon to one of the standard pointers ?
I see alot of examples using:
TreeView.DragIcon = TreeView.SelectedItem.CreateDragImage

but I don't want to create an image.

Who is Participating?
sidwelleConnect With a Mentor Author Commented:
Found it !
"Dragging the OLE Drag Source over the OLE Drop Target"

Private Sub TreeView_OLEDragOver(Data As MSComctlLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single, State As Integer)

'    vbDropEffectNone 0 Drop target cannot accept the data.
'    vbDropEffectCopy 1 Drop results in a copy. The original data is untouched by the drag source.
'    vbDropEffectMove 2 Drag source removes the data.
    Effect = vbDropEffectNone
End Sub
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.