please accept my aplogies if i did not explain myself well enough. i will
try again.
i have created a .NET form region which has a formRegionType of
'separateAll'. my form region is an embedded resource. i can open it from
the command bar with the following code and it works fine:
const string clientsMessageClass = "IPM.Contact.TestAddin1.Client";
Outlook.ContactItem contactItem =
(Outlook.ContactItem)clientsFolder.Items.Add(clien tsMessageClass);
contactItem.MessageClass = clientsMessageClass;
contactItem.Display(objMissing);
now i am trying to create a new NavigationItem within the Contacts
navigation pane to access this form region. So i am doing code like this,
where 'clientFolder' is a MAPI Folder I have created within the default
Contacts MAPI Folder as a place to store any custom items generated from my
custom form:
Outlook.NavigationFolder myCustomNavigationFolder =
myCustomNavigationGroup.NavigationFolders.Add(clie ntsFolder);
ok - so my problem is that whenever I double click my new NavigationItem it
is opening the default contacts form. i want it to open my custom form
region.
"Sue Mosher [MVP-Outlook]" wrote in message
...
Since form regions do not themselves have message classes, I'm a little
confused both about what you've done and about what you're trying to do with
the form region. Maybe you can post your region's manifest or at least
explain whether you're trying to do an adjoining or separate region.
If you want users to use a custom form to create items in your folder,
create and publish a traditional Outlook form with the desired message class
and set it as the folder's default on the Properties dialog for the form.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Fidget Brain" wrote in message
...
I created a custom form region with the following message class:
"IPM.Contact.TestAddIn1.ClientRegion". I then created a new Folder within
the default Contacts folder to store these custom items. Finally, I
created
a NavigationFolder within the Contacts navigation module which points to
my
new Folder.
when I click the navigation pane folder it is raising the default Contacts
form, rather than my custom form. this is expected. the problem is that I
can't find a way to set my custom message class for this folder in order
to
correct this problem. The DefaultMessageClass property of my folder is
read-only. Also when I first create my folder, the help file specifies
that
the additional optional parameter should specify an olDefaultFolder type,
so
I can't set it there either.
any help appreciated as Ive been stuck on this now for a while 