473,545 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drag and Drop Outlook Mail Message

I want to be able to drag and drop an Outlook mail message (Outlook 2003)
onto a windows form (C# 2003) so that my application can then save the file
(in the same was as if I were to drag and drop on the desktop). Anyone able
to help me with how to achieve this?
Jun 9 '06 #1
3 4040
Yes, use the standard Drag and Drop events for the control which should
accept them.

The problem that you'll run into is that you can't get the body or
attachemtns for the email.

The only way to get that data would be to write a plugin for outlook.

HTH
Andy

daveward10 wrote:
I want to be able to drag and drop an Outlook mail message (Outlook 2003)
onto a windows form (C# 2003) so that my application can then save the file
(in the same was as if I were to drag and drop on the desktop). Anyone able
to help me with how to achieve this?


Jun 9 '06 #2
So no way that you know of to "Save As" the dragged item and persist to an
Outlook Item file (.msg)?

"Andy" wrote:
Yes, use the standard Drag and Drop events for the control which should
accept them.

The problem that you'll run into is that you can't get the body or
attachemtns for the email.

The only way to get that data would be to write a plugin for outlook.

HTH
Andy

daveward10 wrote:
I want to be able to drag and drop an Outlook mail message (Outlook 2003)
onto a windows form (C# 2003) so that my application can then save the file
(in the same was as if I were to drag and drop on the desktop). Anyone able
to help me with how to achieve this?


Jun 9 '06 #3
Programatticall y,

No, the only way I know would be for the user to do the save as.

Andy

daveward10 wrote:
So no way that you know of to "Save As" the dragged item and persist to an
Outlook Item file (.msg)?


Jun 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7606
by: Karsten Schramm | last post by:
Hi, if I drag an Outlook.MailItem to a Windows-Explorer window a <subject>.msg file will be created. Now I try to drag & drop a mail item to my own WinForm app. Unfortunately it doesn't work. In the "drop event" are eight DataFormats (e.Data.GetFormats()) but the important one (imho) "FileContents" is "Nothing"/"null".
9
6791
by: Wang, Jay | last post by:
Hello, all, I would like to enable some text between <SPAN url="http://www.testserver.com/">WORD TO BE DRAGGED </SPAN>. I put some javascript and it will extract http://www.testserver.com/ from the the span element when I select the whole text in the SPAN and drag it. However, I want to drag it without have to select the words between the...
8
20821
by: WindAndWaves | last post by:
Hi everyone, Has anyone got any experience with drop and drag in Access? I would like to make a calendar style form where my users can drop and drag appointments.... I am using Access 2003 and I have access to .net and the like, but I would really like to keep it simple.
0
3025
by: Richard | last post by:
Hi, 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...
7
7839
by: Johann Wagner | last post by:
Hello! I want to drop an email in my C# application. I get the drop event and the dataobject. But i cannot interpret the data in the dataobject. So i cannot get the email. I have found a code sample for getting appendix via drag&drop, but this doesn't work for the email, too. Can somebody give me a tip how i can get the email? Regards,...
1
2208
by: BVM | last post by:
Hi: I want to drag a mail item from Outlook and drop it in to a listbox. Then the listbox will display the name of the mail item. However this code string files = (string)e.Data.GetData(DataFormats.FileDrop); gives files=null. So how can I do Drag & Drop with Outlook and .NET? Is this very hard one? Thank you for any help, Dennis Huang
4
2055
by: kemal asad | last post by:
how can i create a vb application where i can drag and drop ( with a move caracteristic) email from outlook, into my application( email viewer). thanks, any help is welcome, samples a great way of learning. Kemal
6
14652
by: David Anderson | last post by:
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...
4
14573
by: SStory | last post by:
I want to drag a message from Outlook to a richtextbox on a vb.net form. I don't get the message body. I have searched all over the place and found nothing. Does anyone know how to do this? I don't care about attachments. I just need the text. Thanks, Shane
0
7479
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7669
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
5987
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4962
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3468
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
722
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.