>Hi Al
>some precisions on my request :
>having a treeview at left and windows explorer at right: with the mouse i want to drag drop any object(folder with subfolders+files,any file,a selection of objects,...) toward the treeview.
>what codings must i put in the treeview (properties & methods concerned) to achieve this operation
As I see it the only tricky part is getting the object name (file, top-level folder etc) from File Explorer.
I would instrument the various methods in the TreeView to see what gets passed in during a DragDrop operation. Sorry I don't have time to test this myself.
Here's an example of dragging and dropping between 2 different TreeView controls, may give you some ideas:
https://support.microsoft.com/en-us/help/307967/how-to-add-treeview-drag-and-drop-functionality-in-a-visual-basic-.net-or-visual-basic-2005-applicationFinally, if you're having problems dropping directly on to the TreeView control itself, you might be able to "fake it out" by putting some other control on top of the TreeView e.g. a transparent Shape. But I would try something like that only as a last resort, hopefully a TreeView control offers OLE drag/drop functionality at least as good as any other VFP control.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up