Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Creating a New email message

Geek News

Creating a New email message
Tom at GSD 8/7/2006 7:02:28 PM
I have created an addin that adds a menu item to the main outlook menubar.
The menu item has to generate a new mail message. I would like to change the
title of the new mail message window and a few other items before the new
message window is displayed. What is the correct way to cause the new mesage
window to appear without using the new message button, and is it possible to
change the properties of the new message window before it is displayed?

Thanks!
RE: Creating a New email message
Nkv 8/7/2006 7:02:33 PM
Hello,

This example will help you.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaol11/html/olmthCreateItem_HV05247808.asp


"Tom at GSD" wrote:

[Quoted Text]
> I have created an addin that adds a menu item to the main outlook menubar.
> The menu item has to generate a new mail message. I would like to change the
> title of the new mail message window and a few other items before the new
> message window is displayed. What is the correct way to cause the new mesage
> window to appear without using the new message button, and is it possible to
> change the properties of the new message window before it is displayed?
>
> Thanks!
RE: Creating a New email message
Tom at GSD 8/8/2006 2:09:02 PM
Thank you for the reply. Yes I discovered this yesterday. The real trick to
this is calling the "Display" method, which in my case caused the new
inspector event to be fired.

"Nkv" wrote:

[Quoted Text]
> Hello,
>
> This example will help you.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaol11/html/olmthCreateItem_HV05247808.asp
>
>
> "Tom at GSD" wrote:
>
> > I have created an addin that adds a menu item to the main outlook menubar.
> > The menu item has to generate a new mail message. I would like to change the
> > title of the new mail message window and a few other items before the new
> > message window is displayed. What is the correct way to cause the new mesage
> > window to appear without using the new message button, and is it possible to
> > change the properties of the new message window before it is displayed?
> >
> > Thanks!

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net