Drag files from application to explorer

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

Hello,

in my application, i need to drag files from the windows
explorer to the application, but also the other way round.
To drag files from the explorer works fine (using
Data.GetData(System.Windows.Forms.DataFormats.FileDrop)),
but how must i set the Data-object to drag files from my
application to the explorer?

Thanks in advance for your help.

Regards,
Daniel
 
Ok, i've found the solution. If anybody is interested: You have to create a
System.Windows.Forms.DataObject, and fill it using the SetData method
(parameters DataFormats.FileDrop, string-array containing files).

Regards,
Daniel
 
Back
Top