Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Drag and Drop from List to Tree View

0 views
Skip to first unread message

NickHK

unread,
Mar 29, 2007, 10:42:43 PM3/29/07
to
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/archives/2007/01/11/listbox-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" <Excel...@discussions.microsoft.com> wrote in message
news:A8B44C37-817F-42ED...@microsoft.com...
> 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


0 new messages