View Single Post
  #7  
Old May 16th 08, 02:27 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

If you use Inspector wrapper classes as has been recommended then each
wrapper class has an Inspector object that's set when you create the wrapper
class instance in NewInspector. You use your constructor code for that
wrapper class to set the Inspector object and to add your event handlers.
When Activate() fires it fires only in that one wrapper class, therefore the
Inspector object in that wrapper class is the one you're handling events
for.

--
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
...
When I register
((Ol.InspectorEvents_Event)Inspector).Activate+=ne w
Microsoft.Office.Interop.Outlook.InspectorEvents_A ctivateEventHandler(Connect_Activate);


Following method is craeted

void Connect_Activate()
{}

This has no defination for inspector there in new inspector wher I get
my current inspector I used that inspector object insted.

Let me know if I am know in implementing things.


Ads
 

Personal Finance - Mortgage Calculator - Business Credit Card - Best Credit Cards - Debt Help