Getting to the default "drag" cursor while dragging the TreeNode

V

Vlad

Hi all.

Is there a way to get to the default "drag" cursor
("arrow-and-some-rectangle") during drag-and-drop? I'm doing drag-and-drop
in TreeView and need to show user that he/she cannot drop dragged item in
particular nodes. So, this part actually works great, user sees Cursors.No
while dragging over invalid node in the tree. But what if the next node is
valid for dropping? I tried Cursors.Default, it shows the system default
pointer (of course). Can I get to the default "drag" cursor back? I tried to
set the UseDefaultCursors of GiveFeedbackEventArgs to true and false with no
result.

Thanks for any kind of help!!
 
G

Guest

HI

Try handling in Drag Over event of Tree View. If its

1.Valid node set e.Effects = DragDropEffects.Move // Default Curesor
+Rectangle cursor

2. Invalid Node Set e.Effects = DragDropEffects.None
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top