473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

c# drag drop get data from outlook email

Hi all, I would like to create a small C# application with this functionality.

1. Drag&Drop an e-mail from Outlook onto a C#Form.

2. the application will get the values in the e-mail and fill out the form fields (sender e-mail, subject, body of the email: client name, client surname, client message, etc.)

This is ALL i need. Nothing complicated. I've searched the web and I can't find the solution to my problem. I found tutorials to create forms for doing all sorts of stuff I don't need. Pls help.
Nov 9 '14 #1
1 4658
Frinavale
9,735 Expert Mod 8TB
You will probably have to look into what data is transferred upon dragging and dropping data from outlook into your application but this isn't too hard to do.

The first thing you need to do is implement a method that handles the drop event.

I'm not sure what kind of application you are developing so here are 2 articles on how to accomplish this:
  1. The WPF UIElement.Drop Event
  2. The Win Forms DragDropEffects


I've never done this in a win forms application but it is pretty straight forward in the WPF version so I'm assuming it wont be complicated for the win forms version...

Anyways, once you have implemented the method you will have to put a breakpoint on it and then actually drag and drop the data from Outlook onto the control that has the drop method attached to it.

At that point the breakpoint will let you investigate the data that is provided to you at the time of dropping the data into your app so that you can figure out what to do with that data according to your needs.

-Frinny
Nov 10 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Captre | last post by:
Does anyone have a code example of how to implement drag & drop from Outlook into a vb.net application? Thx. CaptRE.
1
by: Oleg Medyanik | last post by:
Hi, Is there any way to drag-drop messages from Outlook 2003 into my Application (.NET based) I have not found it googling yet. The problem is that i want the messages to preserve their MSG...
2
by: SamSpade | last post by:
There seems to be two ways to put things on the clipboard ( I don't mean different formats): SetClipboardData and OleSetClipboard If I want to get data off the clipboard do I care how it was put...
4
by: Qingdong Z. | last post by:
I have a VS.NET windows application which use drag-drop feather. It works fine when application start, but stops working after application run one or two days. The application is related to Video...
3
by: Thomas | last post by:
Hi all, I've got a half-functioning drag-drop from outlook app running. I can get the name of the message from the FileGroupDescriptor part, but whenever I try to get the FileContents part, I...
6
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...
5
by: Brian Henry | last post by:
I haven't worked much with drag/drop but I am trying to make a form that accepts files to drug onto it from explorer and droped and have the form know the full path and file name of the files...
2
by: BradBrigade | last post by:
I want to drag an object from my application into Windows Explorer and have it create a new file, but the object I want to drop is not a file to begin with. It seems the only thing I can do is...
4
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...
1
by: Cylix | last post by:
My application have a file list, I set the the list will drag the file fullpath string already. When I drop it to outlook email, it pasted as a text ... How can I paste it as a attachment? ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.