Handling Outlook Drag&Drop

  • Thread starter Thread starter alexey.kulish
  • Start date Start date
A

alexey.kulish

Hello!

I have a question - how I can handle Outlook's drag&drop operation
when user is trying to attach file or directory to the new email?
I need to get such functionality in the Outlook - possibility to add
folder(s) (zipped to one file on the fly) to the new email.
I know that this is possible in the Outlook Express using hooks. But
may be anybody know - how it can be implemented in the Outlook?

Many thanks for the any help in this problem!
Alexey K.
 
Alexey,

The MailItem event doesn't offer a hook for drag and drop operations (at
least, from what I can tell). You could probably create a custom panel to
place in the mail to register drag and drop operations. This month's MSDN
magazine has an article titled "Build Office-Based Solutions Using WPF, WCF,
And LINQ" which should help.

http://msdn.microsoft.com/msdnmag/issues/07/12/VstoNet/default.aspx

Specifically, look for the section of the article where they embed a
control in the outlook mail item. You don't have to use WPF, but it
ultimately uses a Windows Forms control, which you could look for drag and
drop events on.
 
Back
Top