View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default Drag and Drop from List to Tree View

AFAIK, the Listbox does not support the OLEDrag/Drop events that the tree
view does.
Maybe you can fake it with a DataObject created in the ListBox's MouseDown
event.
http://www.dailydoseofexcel.com/arch...drag-and-drop/
but probably not simple.

If you can use a listview control instead (set to a suitable appearance),
you could then use the OLE methods between the 2 controls.

NickHK

"ExcelMonkey" wrote in message
...
Is it possible to drag from a listbox on a userform to a Tree View on the
same useform. The idea being that the dragged item from the Listbox would

be
a child node of the item its dragged onto on the Tree View.

Thanks

EM