View Single Post
  #3  
Old May 14th 08, 06:38 AM posted to microsoft.public.outlook.program_addins
vidishasharma@gmail.com
external usenet poster
 
Posts: 11
Default strange problem while adding button to inspector window

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
 

Loans - Adverse Credit Remortgage - Loan - Halifax - Record Internet Radio with Tags