473,320 Members | 2,035 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,320 software developers and data experts.

Outlook Express Drag and Drop

Ok you can drag and drop from Outlook Express to the desktop and get an EML
file on the desktop. Anyone have any idea how I can drag and drop from OE to
my application and get an EML file?

Thanks
Jeff
Jul 25 '06 #1
2 3127
Jeff,
have you considered enabling the allowdrop property of the control where you
want the email file to be dropped?
There are a few more events that could be used which are ItemDrag, DragOver,
DragEnter, and DragDrop.
-H
"Jeff" <je*********@lindholm.orgwrote in message
news:YF*********************@newssvr21.news.prodig y.com...
Ok you can drag and drop from Outlook Express to the desktop and get an
EML file on the desktop. Anyone have any idea how I can drag and drop from
OE to my application and get an EML file?

Thanks
Jeff

Jul 25 '06 #2
Well I figured it out. You have to convert the DragEventArgs.Data item into
System.Runtime.InteropServices.ComTypes.IDataObjec t from there you need to
use the FORMATETC to get the pieces you need.

Now I am working on the same issue with Outlook. I can tell that I have an
Outlook item dropped by the available formats, and I can use the
Microsoft.Office.Interop stuff to talk to Outlook, but if I go this route
every time I talk to Outlook I get the popup asking to verify that it is ok
for my application to get the information from the program.

Is there anyway to get the information out of the IDataObject (documentation
somewhere?) or a way to tell Outlook my application is well behaved?

Thanks

"Hitesh Ramchandani" <ra****************@hotmail.comwrote in message
news:eD**************@TK2MSFTNGP02.phx.gbl...
Jeff,
have you considered enabling the allowdrop property of the control where
you want the email file to be dropped?
There are a few more events that could be used which are ItemDrag,
DragOver, DragEnter, and DragDrop.
-H
"Jeff" <je*********@lindholm.orgwrote in message
news:YF*********************@newssvr21.news.prodig y.com...
>Ok you can drag and drop from Outlook Express to the desktop and get an
EML file on the desktop. Anyone have any idea how I can drag and drop
from OE to my application and get an EML file?

Thanks
Jeff


Aug 1 '06 #3

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

Similar topics

7
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...
0
by: Richard L Rosenheim | last post by:
I'm looking to support the ability for the user to drag-and-drop messages from Outlook Express to my program. The program is able to retrieve the email by utilizing the GetData(DataForms.Text)...
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...
9
by: Jim Florence | last post by:
Hello, I've just started to look seriousl at VB and .Net. I have written a calendar app and am trying to find the best way to drag and drop messages from Outlook/Outlook Express ditrectly in...
3
by: daveward10 | last post by:
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...
0
by: lorad | last post by:
Ok I can drag and drop from Outlook Express no problem and get the contents of the EML file as if it was dropped on the desktop. Does anyone have any idea on how to get the information from Outlook...
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...
0
by: alexey.kulish | last post by:
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 -...
2
by: ManningFan | last post by:
I built a nifty little SPAM killer with Access linking into Outlook while I was at work the other day (boring day, loads of time to kill...) but now I'd like to use it at home where we use Outlook...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
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.