I have written some code to drag a node from a treeview control and insert it into a listview control. When I call the dodragdrop I have to pass a text string in the first value. If I try to put in a reference to the treenode the dodragdrop function does not execute. Ideally I'd like to be able to pass a datastructure to the listview dropevent to which I can grab the parts out that I need - but now I'm limited to taking the items out of the treenode that I need building delimited string, passing that then splitting it.. not ideal - any idea as to why this is happening and if there is way to pass something other than a string in the dodragdrop between a treeview control and listview control?
I'm simply doing this..
Private Sub covgTree_ItemDrag(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemDragEventArgs) Handles covgTree.ItemDrag
DoDragDrop(e.item, DragDropEffects.Copy Or DragDropEffects.Move)
End Sub