how to Drag & Drop Files?

  • Thread starter Thread starter Alex Glass
  • Start date Start date
A

Alex Glass

I have a picture box control with an image loaded. I would like to be able
drag the image from the picture box into an email or the desktop. Does
anyone know how to do this? Using the DoDragDrop with Outlook, i have been
able to drag the filename into an email. Is there any way to drag the
picture instead?
 
Use the Control.DoDragDrop method, passing in the picture/text as the first
parameter. Have a look at the MSDN documentation for this. It has an example
of dragging and dropping from one list box to another, which you can adapt.
 
Back
Top