Where is the form published?
The Personal Forms Library is really a collection of hidden messages with a
MessageClass of "IPM.Microsoft.FolderDesign.FormsDescription". The hidden
items are located in the hidden Common Views folder. You can get the Folder
EntryID for that folder from the default Store from
Field(PR_COMMON_VIEWS_ENTRYID), where PR_COMMON_VIEWS_ENTRYID = 0x35E60102.
If you get that folder and iterate all items in the hidden items collection
for that MessageClass you will find your form if it was published to
Personal Forms. Your custom form MessageClass is contained in the
PR_MAILBEAT_BOUNCE_SERVER property of the hidden item (0x68000001E), so
that's what you look for to identify your custom form.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Roger" <rog_21 DeleteThis @yahoo.com> wrote in message
news:ejgnWIf2HHA.5740@TK2MSFTNGP04.phx.gbl...
>I have a custom form that I published using C# add-in and I would like to
> remove that form within the code, either during the add-in shutdown or by
> pressing a button. Does anyone have any ideas?
> I can also use Redemption.
> Thanks
>
>
>