View Single Post
  #3  
Old September 27th 09, 12:25 PM posted to microsoft.public.outlook.program_addins
bustanji83
external usenet poster
 
Posts: 1
Default inspector toolbar buttons get multiple events


can you please write the code to add button for active inspector

"Saeed" wrote:

I am writing VSTO SE addin for outlook 2003 in C#. I am keeping reference to
all open inspectors using inspector wrapper class. When a newInspector event
occurs I add a new toolbar and a button to the toolbar (unless they are
already present, which never happens) . I also add a handler to the button
click event. The problem I am facing is that I am getting multiple button
click events when more than one inspector is open. Is there any standard way
of adding a toolbar and button to inspector so that only respective event is
called for an Inspector.

Ads