Reputation: 8373
I would like to drag and drop files from windows explorer onto my application which is being built in Codegear RAD studio 2009. Then I would like to be able to access data from the object I am dragging and dropping. I believe I have to implement IDropTarget. Can someone please provide an example of how I might implement IDropTarget to achieve this?
Upvotes: 2
Views: 5567
Reputation: 6187
There is a nice example written by Michael Dunn over at codeproject.com which shows how to implement IDropTarget
and access data from inside a IDataObject
which is used to store data during the drag and drop operation.
Upvotes: 1