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.
 

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

Back
Top