drag/drop to Windows Explorer
-
Do you know if there is a way to get a message from Windows Explorer when my application is about to drop data into it? At this point I am calling control.DoDragDrop(dataVar, DragDropEffects.All); when drag is triggered? The problem is that I have to create a bunch of files and it takes a while, so I'd like to do all that OnDrop instead of OnItemDrag in case the user decides to cancel. Another problem is that the dataVar needs to be in different formats depending on whether the user is dragging internally or externally (to windows explorer). I have no idea how to do that. Any help would be appreciated, Elena Elena
-
Do you know if there is a way to get a message from Windows Explorer when my application is about to drop data into it? At this point I am calling control.DoDragDrop(dataVar, DragDropEffects.All); when drag is triggered? The problem is that I have to create a bunch of files and it takes a while, so I'd like to do all that OnDrop instead of OnItemDrag in case the user decides to cancel. Another problem is that the dataVar needs to be in different formats depending on whether the user is dragging internally or externally (to windows explorer). I have no idea how to do that. Any help would be appreciated, Elena Elena
Unfortunately, this is not as easy as is hoped. I was looking for something similar, if not identical, and it's not just a case of droping an object into the windows enviroment. I've been trying to figure this out for weeks now, and i've had to go an look at COM and IDL to study the interfaces used by objects in unmanaged code to handle streams, before I can even begin to grasp how it would work in managed code. It's all fun and games if you enjoy going balled through hair tearing though :) I'm sure Heath will be able to fill you in far better than I can, but this is just a warning from someone who's stuck on the same thing! Cata
-
Do you know if there is a way to get a message from Windows Explorer when my application is about to drop data into it? At this point I am calling control.DoDragDrop(dataVar, DragDropEffects.All); when drag is triggered? The problem is that I have to create a bunch of files and it takes a while, so I'd like to do all that OnDrop instead of OnItemDrag in case the user decides to cancel. Another problem is that the dataVar needs to be in different formats depending on whether the user is dragging internally or externally (to windows explorer). I have no idea how to do that. Any help would be appreciated, Elena Elena
As Cata mentioned, this has all been covered in the past. Search this forum for previous posts. You could also look at Catalysts's profile and see the messages posted. Most of them are related to this problem.
-----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----