Outlook Express Drag and Drop

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Ok you can drag and drop from Outlook Express to the desktop and get an EML
file on the desktop. Anyone have any idea how I can drag and drop from OE to
my application and get an EML file?

Thanks
Jeff
 
Jeff,
have you considered enabling the allowdrop property of the control where you
want the email file to be dropped?
There are a few more events that could be used which are ItemDrag, DragOver,
DragEnter, and DragDrop.
-H
 
Well I figured it out. You have to convert the DragEventArgs.Data item into
System.Runtime.InteropServices.ComTypes.IDataObject from there you need to
use the FORMATETC to get the pieces you need.

Now I am working on the same issue with Outlook. I can tell that I have an
Outlook item dropped by the available formats, and I can use the
Microsoft.Office.Interop stuff to talk to Outlook, but if I go this route
every time I talk to Outlook I get the popup asking to verify that it is ok
for my application to get the information from the program.

Is there anyway to get the information out of the IDataObject (documentation
somewhere?) or a way to tell Outlook my application is well behaved?

Thanks
 

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