Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to open a mail item in outlook which should be come inside windows Form (say a panel in the form).

The mail message should not be opened as another outlook window, it should be come inside the System.Windows.Form.

Please suggest me some ideas
Posted
Updated 24-Feb-10 1:32am
v2

1 solution

Re-parenting Outlook as a whole application is tricky enough, not to mention the problem of ensuring your end users have outlook installed, and the correct version.

When you say you are opening the item from outlook, do you mean you are writing some sort of addin that runs inside of outlook?

If you are merely displaying the message inside a separate application I would suggest using the Outlook Automation objects to save the message as an MHTML file in a temp folder, then displaying that file in a WebBrowser control. in fact that is probably the route you would have to take in an addin, as I can't see you being able to get the window handle, and even if you can then it just won't re-parent in Office 2007, earlier versions of outlook may work if you are lucky.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900