Well I figured it out. You have to convert the DragEventArgs.Data item into
System.Runtime.InteropServices.ComTypes.IDataObjec t 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
"Hitesh Ramchandani" <ra****************@hotmail.comwrote in message
news:eD**************@TK2MSFTNGP02.phx.gbl...
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
"Jeff" <je*********@lindholm.orgwrote in message
news:YF*********************@newssvr21.news.prodig y.com...
>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