Link to home
Start Free TrialLog in
Avatar of mikefish
mikefish

asked on

Drag message from Outlook to VB6 control

This has surfaced a few times, but none of the posts seem to get me any closer.

I have a VB6 app connected to MS SQL. I need to be able to drag an email message from Outlook or Outlook Express onto a control on a form. This email message is then to be stored in the database (I don't care about attachments).

I do not wish to use the Outlook object model as some users are on Express.

OLEDragDrop to a rich text box produces text. This is messy if the message is in HTML format. It also fails to produce the body when dragging from Outlook 2000.

If I drag the message from Outlook to Windows Explorer, it creates a file. I can then drag this into a rich text box as a file. However, this 2-step process will not be acceptable to end users. I need the dragdrop straight from Outlook/Express to my app.

Somebody please tell me if this isn't possible as it's been driving me nuts all afternoon.
Avatar of Mikal613
Mikal613
Flag of United States of America image

Avatar of mikefish
mikefish

ASKER

thanks. This works well for attachments and has saved much frustration from trying the VB-only route. However, I need to be able to drag .eml or .msg files (not worried about attachments) from Outlook or Express. I would imagine that the C++ code needs modifying, which I'm not up to. Any pointers?
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial