Go to the following site for an example of how to trap this:
http://codeproject.com/csharp/TestEmailDragDrop.asp
I have a treeview control that user drag an entire email, with attachments,
or just an attachment to, and I then save the contents as an image.
"David Anderson" wrote:
[color=blue]
> Does anyone know how to drag&drop a message with attachments from Outlook
> (2002 or 2003) in to a VB.Net windows form.
> This is really stumping me. I've spent a fair amount of time trying to find
> a solution on the internet, with limited success.
>
> I do have code to drag an attachment directly from Outlook to a form, but
> not a whole message.
> I want to have access to an object reprensenting the message so I can bust
> out the message and attachments individually.
>
> I have implemented a solution involving dragging the e-mail message from
> Outlook to the desktop, then from the desktop to the windows form, but the
> users don't want to do that and I don't think they should have to.
>
> I've seen libraries and code that seem to make this easy using VB6, C++, or
> COM, but almost nothing in .Net except simple examples of either files or
> tree items, not Outlook e-mails directly onto VB.Net Winforms.
>
> Any help appreciated.
> Dave Anderson.
>
>
>[/color]