DragDrop from application to Windows Explorer
-
I'm developing an application that has some document management functionality, with a folder structure displayed in a treeview. I can quite happily drag the treeview nodes around to re-order them, and drag folders and files into the tree from windows explorer. That bit was easy. I'd also like to be able to drag folders (treeview nodes) out of my application and drop them into an explorer window. I've tried searching for a solution, but only come up with dragging things into my treeview, not out. Can someone point me in the right direction? Cheers, Anthony.
-
I'm developing an application that has some document management functionality, with a folder structure displayed in a treeview. I can quite happily drag the treeview nodes around to re-order them, and drag folders and files into the tree from windows explorer. That bit was easy. I'd also like to be able to drag folders (treeview nodes) out of my application and drop them into an explorer window. I've tried searching for a solution, but only come up with dragging things into my treeview, not out. Can someone point me in the right direction? Cheers, Anthony.
You may take a look at this article. http://www.codeproject.com/csharp/dragdrop.asp I haven't tried to do like that in C# but I have done in VB6 so I'm sure that you will be able to do that in C# too.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."