Notification of drop in drag-drop in Windows

Question :

Notification of drop in drag-drop in Windows,

Answer :

My C# program has a list of files that can be dragged from it and dropped into another program. My requirements are that the file be copied to a different directory first.

So, can I be notified of the drop operation so that I can only copy the file if operation succeeds? I’d rather wait till I know it needs to be copied before actually performing the copy.

Also, is it possible to know what program the drop operation is occurring in? Ideally I’d like to alter the filepath based on who or what its being dropped.

Read More  Checking FTP status codes with a PHP script

The solution to this can be in any .NET language or C/C++ with COM.


There are a few ambiguities in your question. What operation needs to be successful?

For everything you want to know about drag and drop, browse through these search results (multiple pages worth):

That’s the answer Notification of drop in drag-drop in Windows, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Read More  Instrumenting Database Access

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you