Help!

Remove Custom Form?


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins RSS
Next:  Office 2007, Vista, COM Add-in fails to load if U..  
Author Message
Roger
External


Since: Aug 08, 2007
Posts: 3



PostPosted: Wed Aug 08, 2007 3:26 pm    Post subject: Remove Custom Form?
Archived from groups: microsoft>public>outlook>program_addins (more info?)

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
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3213



PostPosted: Wed Aug 08, 2007 3:43 pm    Post subject: Re: Remove Custom Form? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
>
>
>
Back to top
Roger
External


Since: Aug 08, 2007
Posts: 3



PostPosted: Thu Aug 09, 2007 11:28 am    Post subject: Re: Remove Custom Form? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Ken I will give it a try and let you know how it goes.

"Ken Slovak - [MVP - Outlook]" <kenslovak.RemoveThis@mvps.org> wrote in message
news:e71Q4Rf2HHA.5160@TK2MSFTNGP05.phx.gbl...
> 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.RemoveThis@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
>>
>>
>>
>
Back to top
Roger
External


Since: Aug 08, 2007
Posts: 3



PostPosted: Thu Aug 09, 2007 11:42 am    Post subject: Re: Remove Custom Form? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks again Ken for your help, but I do not see an InfoStore option in C#
COM object.. I looked at Sue's example:
http://www.outlookcode.com/codedetail.aspx?id=572
and I am not able to access the same objects from C# is this true or am I
missing something?

Thanks



"Ken Slovak - [MVP - Outlook]" <kenslovak RemoveThis @mvps.org> wrote in message
news:e71Q4Rf2HHA.5160@TK2MSFTNGP05.phx.gbl...
> 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 RemoveThis @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
>>
>>
>>
>
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3213



PostPosted: Thu Aug 09, 2007 2:08 pm    Post subject: Re: Remove Custom Form? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sue's example uses CDO 1.21 to get at a store object. You had said you were
willing to use Redemption, which is compatible with C# code. CDO isn't
supported for managed code at all. Use Redemption and get the RDOStore
object that represents your default store from the RDOSession object:

RDOSession.Stores.DefaultStore will return the default store to you as an
RDOStore object. Then use the Fields collection of the RDOStore object to
get the Common Views folder as an RDOFolder object and get its HiddenItems
collection as an RDOItems collection. Iterate that collection, looking for
the desired MessageClass and examine any items (as RDOMail objects) to see
if your custom MessageClass is in the PR_MAILBEAT_BOUNCE_SERVER property.

--
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 RemoveThis @yahoo.com> wrote in message
news:eUrxtvp2HHA.5360@TK2MSFTNGP03.phx.gbl...
> Thanks again Ken for your help, but I do not see an InfoStore option in C#
> COM object.. I looked at Sue's example:
> http://www.outlookcode.com/codedetail.aspx?id=572
> and I am not able to access the same objects from C# is this true or am I
> missing something?
>
> Thanks
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum