Drag&Drop file to another application

S

SMA

Hello,

I want to provide a file copy operation with dragging an icon (or something
else) from my application to Windows Explorer or another application which
supports file drop, I can easily get files which dropped to my application
but do not how to perform the first one. Most of the tutorials and code
examples show how to accept dropped items, not how to drop them to the other
application windows.

Thanking in advance...
 
M

marc.derider

I believe that you must publish drag drop data in the format that they
expect. You should drag and drop from explorer to your application and
then enumerate all of the Data types in there. Thre should be 1 or 2
data formats that should jump out. Then enumerate the data and see what
format. Then merely try publishing that when you begin a drag and drop
operation and see if the application accepts. This should work with any
local files that you are transferring, any remote files would have to
be downloaded to the client and then you would send the temp file paths
to explorer or whatever target application.

Hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top