Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Cannot programmatically open custom message in custom form (http://www.outlookbanter.com/outlook-using-forms/5472-cannot-programmatically-open-custom-message.html)

ms January 20th 06 01:52 PM

Cannot programmatically open custom message in custom form
 
Hello

I have installed an OL form to handle custom messages, ie. messages with
extended properties. I also installed menu and toolbar to handle custom
messages.
Creating new custom message from OL GUI works fine - the new message opens
in my custom form.
But sadly, opening a custom message programmatically fails - the message
always opens in the standard OL form, not my custom form. Meaning that not
all the message properties can be displayed or edited for a programmatically
opened message.
Could this be because the FormDescription.MessageClass is wrong?
Outlook Spy reveals that the message's MessageClass is correct:
IPM.NOTE.MYNOTE, while the message's FormDescription.MessageClass is wrong:
IPM.NOTE.
How to change the read-only property FormDescription.MessageClass...? Is
there anything else that could cause this problem?

Sue Mosher [MVP-Outlook] January 20th 06 03:01 PM

Cannot programmatically open custom message in custom form
 
I'm not sure what you mean by "opening a custom message programmatically." Can you post a code snippet. Also, did you create a separate read layout for your IPM.Note.MyNote? If not, then you're probably seeing your custom form, but it's using the default read layout.

--
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


"ms" wrote in message ...
Hello

I have installed an OL form to handle custom messages, ie. messages with
extended properties. I also installed menu and toolbar to handle custom
messages.
Creating new custom message from OL GUI works fine - the new message opens
in my custom form.
But sadly, opening a custom message programmatically fails - the message
always opens in the standard OL form, not my custom form. Meaning that not
all the message properties can be displayed or edited for a programmatically
opened message.
Could this be because the FormDescription.MessageClass is wrong?
Outlook Spy reveals that the message's MessageClass is correct:
IPM.NOTE.MYNOTE, while the message's FormDescription.MessageClass is wrong:
IPM.NOTE.
How to change the read-only property FormDescription.MessageClass...? Is
there anything else that could cause this problem?



All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com