View Single Post
  #5  
Old May 14th 08, 02:23 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,426
Default strange problem while adding button to inspector window

Why would you need to grab ActiveInspector() in the Inspector.Activate()
event? You already know what Inspector it is. Just use the Inspector that
fired the Activate() event. Or am I missing something?

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


wrote in message
...
Hi Ken,

Thanks for answering my question.

I am trying to add win32 button next to 'to:' when you read a mail in
an inspector (same way I did for reading pane)

In my
InspectorsEvents_NewInspectorEventHandler(myInspec tors_NewInspector)

I registered the following event
((Ol.InspectorEvents_Event)Inspector).Activate+=ne w
Microsoft.Office.Interop.Outlook.InspectorEvents_A ctivateEventHandler(Connect_Activate);

however In Connect_Activate() I find that
applicationObject.ActiveInspector() is still 'null' means my inspector
is not activated and therefore button does not get added

when I try to reply that mail applicationObject.ActiveInspector() has
valid value as now the inspector where we read our mail is active and
therefore the button gets added in that inspector.

I tried the same thing in
((Ol.InspectorClass)Inspector).InspectorEvents_10_ Event_Activate +=
new
Microsoft.Office.Interop.Outlook.InspectorEvents_1 0_ActivateEventHandler(Connect_InspectorEvents_10_ Event_Activate);

however no luck. Can you guide what is wrong I am doing....




Ads
 

Debt Help - Yugioh - Loans - Loans - Credit Cards