Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Inspector Wrapper utlook 2000

Geek News

Inspector Wrapper utlook 2000
Jim <rog_21[ at ]yahoo.com> 2/8/2006 5:24:58 PM
I read http://www.pcreview.co.uk/forums/thread-1856258.php and explored
ItemsCB, but I am using an OOM that has the Activate() method but there
is no Activate event also there is no Close event on a MailItem.
I am having the normal problem where my toolbar does not show up on the
inspector.
Can someone help me?
Thanks
Re: Inspector Wrapper utlook 2000
"Thaddaeus Parker" <tparker[ at ]microlinkllc.com> 2/8/2006 5:41:58 PM
You have to wrap the item like so:
((ItemEvents_10_Event)mailItem).Close += new
ItemEvents_10_CloseEventHandler(mailItem_Close);

in order to get the event to be created or removed. That way you can
override what the current close action is.



regards,



Thaddaeus

"Jim" <rog_21[ at ]yahoo.com> wrote in message
news:%23GwdaSNLGHA.3104[ at ]TK2MSFTNGP11.phx.gbl...
[Quoted Text]
>I read http://www.pcreview.co.uk/forums/thread-1856258.php and explored
>ItemsCB, but I am using an OOM that has the Activate() method but there is
>no Activate event also there is no Close event on a MailItem.
> I am having the normal problem where my toolbar does not show up on the
> inspector.
> Can someone help me?
> Thanks


Re: Inspector Wrapper utlook 2000
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/8/2006 7:08:32 PM
What language are you using? There definitely is an Inspector.Activate event
and both Inspectors and Items have Close events that you can handle. ItemsCB
shows how to wrap things for VB 6 for an Explorer, the link
http://www.slovaktech.com/code_samples.htm#InspectorWrapper on my Web site
shows how to do it for an Inspector. Both are VB 6 samples.

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


"Jim" <rog_21[ at ]yahoo.com> wrote in message
news:%23GwdaSNLGHA.3104[ at ]TK2MSFTNGP11.phx.gbl...
[Quoted Text]
>I read http://www.pcreview.co.uk/forums/thread-1856258.php and explored
>ItemsCB, but I am using an OOM that has the Activate() method but there is
>no Activate event also there is no Close event on a MailItem.
> I am having the normal problem where my toolbar does not show up on the
> inspector.
> Can someone help me?
> Thanks

Re: Inspector Wrapper utlook 2000
Jim <rog_21[ at ]yahoo.com> 2/8/2006 8:04:34 PM
I am using C#
Rog

Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> What language are you using? There definitely is an Inspector.Activate
> event and both Inspectors and Items have Close events that you can
> handle. ItemsCB shows how to wrap things for VB 6 for an Explorer, the
> link http://www.slovaktech.com/code_samples.htm#InspectorWrapper on my
> Web site shows how to do it for an Inspector. Both are VB 6 samples.
>
Re: Inspector Wrapper utlook 2000
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/8/2006 8:57:12 PM
See http://www.outlookcode.com/codedetail.aspx?id=797 for an example of an
Inspector wrapper in C#.

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


"Jim" <rog_21[ at ]yahoo.com> wrote in message news:43EA4ED2.2010904[ at ]yahoo.com...
[Quoted Text]
>I am using C#
> Rog

Re: Inspector Wrapper utlook 2000
Jim <rog_21[ at ]yahoo.com> 2/17/2006 10:12:40 PM
Thank you Ken that work out great.

Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> See http://www.outlookcode.com/codedetail.aspx?id=797 for an example of
> an Inspector wrapper in C#.
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net