I am trying to convert the ListView custom drag/drop handler from the sample to be used in the ultratree. I am trying to do the drag/drop from TreeA -> TreeB, and soon TreeA->TreeA
Yes, I am aware of how to do drag & drop.
Have you checked out that example in the listview?
Not to be out of line, but it is sounding you haven't, or haven't recently. The example uses custom classes to do the drawing, WinListViewDragSource.cs, WinListViewDropTarget.cs and DrapDropManager.cs, I have converted these to work with the treeview
In the WinListViewDropTarget.cs there is the method
void DragDropManager.IDropTarget.OnDropTargetNotify( DragDropManager.DropTargetNotifyInfo info )
inside that there is
case DragDropManager.DropTargetNotification.DragDrop:
Okay, I'm not sure I understand the problem, then.
DmgInc said:when I drag the node on the 2nd tree I want to access my own DragDrop function in my form that contains the trees.
Why can't you do this? What's stopping you? What is this DragDrop function and what does it do? How does the ListView sample access it?
There's really no difference in the drag and drop behavior of the two controls. The Drag events are events on Control and all controls derive from Control and therefore all have the same events.
Maybe I should have been more specific.
The ListView example has the custom drawing where the icons and text are shown while dragging. I am trying to implement that in an UltraTree. I have the drawing part working, but when I drag the node on the 2nd tree I want to access my own DragDrop function in my form that contains the trees.
There is a drag / drop sample for the tree that installs with NetAdvantage. It doesn't drag from one tree to another, but there's really not much to that, you just have to create copies of the nodes and insert them into the tree at the right spot.