Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Drag and Drop from List to Tree View

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tree view in Excel duxxyy Excel Discussion (Misc queries) 1 March 25th 08 02:24 PM
tree view Stewart Rogers Excel Programming 1 July 22nd 04 12:58 PM
tree view control Duraiswamy Lingappan Excel Programming 1 July 20th 04 09:14 PM
tree view control Harald Staff Excel Programming 0 June 10th 04 04:07 PM
tree view control julio Excel Programming 0 June 10th 04 03:04 PM


All times are GMT +1. The time now is 05:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"