I am making a .NET Application which has a TreeView Control in it.
I have 3 levels of nodes. The toplevel is a rootnode which contains all other nodes.
The second level holds one kind of nodes that have one type of objects assigned to the tag property.
The third level holds another kind of nodes. Also this level has one type of objects assigned to the tag property. The objects that are assigned in the third level nodes, are child objects of the objects assigned to the tags of the second level nodes. Let me clarify with an example:
Sales Department
-Fishing equipment
-Person 1
-Person 2
-Person 3
-Fishing boats
-Person 4
-Person 5
I use drag & drop to move one person to another section. Now I can control the drag & drop just fine. But when I drag the dragged node over an invalid drop target, I want the mouse cursor to change so the user knows its an invalid target. Meaning, I don't want Person 1 to be dragged to Person 2, since Person 2 is not a section, but just some other person. When I drag the node further to a section, the mouse cursor gotta change back so the user knows it is a valid target. Now I tried this with Cursor.Current, and failed. I also tried this with AllowDrop of the treeview control and that works, but it doesn't change back so it can be dropped on a valid target.
I hope I explained it right...
Please help.