D
Dom
I'm using a TreeView and I want the user to drag and drop the nodes to
change the look of the tree, just like we change file-locations in "My
Computer". I do the following:
1. Capture MouseDown and start DoDragDrop.
2. Capture DragOver and change e.Effect to either "Move" or "None",
depending on whether the user is dragging to a proper node.
3. Capture DragDrop so I can make the final changes.
The problem is, "DragDrop" (and MouseUp, for that matter) does not
fire if, in "DragOver" I have set the Effect to None. I find this
very conterintuitive. Even though the user has released the dragged
node to an illegal location, I still want to tell him why it is
illegal. Am I doing something wrong.
Also, I notice that some applications, like My Computer, are able to
personalize the cursor during certain drag operations, beyond the ones
offered in DragDropEffects. How is this done?
change the look of the tree, just like we change file-locations in "My
Computer". I do the following:
1. Capture MouseDown and start DoDragDrop.
2. Capture DragOver and change e.Effect to either "Move" or "None",
depending on whether the user is dragging to a proper node.
3. Capture DragDrop so I can make the final changes.
The problem is, "DragDrop" (and MouseUp, for that matter) does not
fire if, in "DragOver" I have set the Effect to None. I find this
very conterintuitive. Even though the user has released the dragged
node to an illegal location, I still want to tell him why it is
illegal. Am I doing something wrong.
Also, I notice that some applications, like My Computer, are able to
personalize the cursor during certain drag operations, beyond the ones
offered in DragDropEffects. How is this done?