> It looks more or less OK to me.
>
[quoted text clipped - 37 lines]
> > );
> > theItem.Close(Outlook.OlInspectorClose.olDiscard);
A problem with the Inbox would definitely be a problem with your code.
However, I don't know what the UserPermissions property is in the Inbox
folder, it's not an exposed property in the Outlook object model.
DisplayName defaults to the custom MessageClass unless you enter a different
string for that property when the custom form is published. It's not an
important property for anything other than what shows up in the custom forms
manager.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hi Ken,
>
[quoted text clipped - 13 lines]
>
> craig
spareway - 23 Jan 2007 23:11 GMT
I figured out a solution. The problem was with the second parameter of
publishform.
string
dllPath ;
object missing = System.Reflection.Missing.Value;
Ol.MailItem theItem;
Ol.FormDescription theDesc;
dllPath = GetAssemblyPath();
//Environment.GetFolderPath(Environment.SpecialFolder.Personal)
theItem = (Ol.MailItem)
this.OutlookApp.CreateItemFromTemplate(dllPath + formPath, missing);
theDesc = (Ol.FormDescription) theItem.FormDescription;
theDesc.DisplayName = formName;
theDesc.PublishForm(Ol.OlFormRegistry.olPersonalRegistry,missing );
theItem.Close(Ol.OlInspectorClose.olDiscard);
Marshal.ReleaseComObject(theItem);
Marshal.ReleaseComObject(theDesc);
On Jan 15, 1:24 pm, "Ken Slovak - [MVP - Outlook]"
<kenslo...@mvps.org> wrote:
> A problem with the Inbox would definitely be a problem with your code.
> However, I don't know what the UserPermissions property is in the Inbox
[quoted text clipped - 28 lines]
>
> > craig- Hide quoted text -- Show quoted text -