inspector toolbar buttons get multiple events

  • Thread starter Thread starter Saeed
  • Start date Start date
S

Saeed

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.
 
Make sure you use a unique Tag property for every button you add.
 
I'm not going to write your code for you. There are plenty of samples on the
Office Developer Web site and at www.outlookcode.com that show how to do
that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top