By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,673 Members | 1,268 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,673 IT Pros & Developers. It's quick & easy.

Drag-N-Drop from MS Outlook

P: n/a

I'm trying to do drag-n-drop from MS Outlook onto a C#
form. I'm just proving a concept for management here so
we don't need to get fancy; assume I'm dropping an Outlook
e-mail message with 2 file attachements onto a form. I've
read everything I could find in MSDN that is relevant and
I've got the basic hooks in place:

private void MainForm_DragEnter(object sender,
System.Windows.Forms.DragEventArgs e)
e.Effect = DragDropEffects.Copy;

private void MainForm_DragDrop(object sender,
System.Windows.Forms.DragEventArgs e)

But now what? About all that I have been succesfully able
to do is get the string text of the message. How do I get
to the subject? body? distribution? file attachements? Is
everything I need in the dropped object itself? Or do I
need to interact with the clipboard or Outlook itself?

Any help would be appreciated, a dirty C# code snippet
would be best, but if you could just steer me in the right
direction I'd appreciate it. I've read everything in MSDN
that I could find that was relevant to drag/drop and
Outlook but have not found a sample that works with the
entire e-mail message AND file attachements.


Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.