Buttons are added multiple times in New Inspector window

  • Thread starter KarthikonIT via OfficeKB.com
  • Start date
K

KarthikonIT via OfficeKB.com

Hi,
I m Creating a Plugin for MS OUtlook, I a few questions

I have added Button to New email window(ie. the window that is opened when an
email is double clicked), but multiple times buttons are
added since "Active Event" of Inspector is called again & again.

How do I prevent multiple buttons from adding up in the "New email window"?


Note:
I have assigned unique tags to the command bar buttons so that event are not
fired multiple times.

When I tried to check the number of commandbars in inspector window it's
returning randing 6 digit no.


Brief description of my architecutre:
I have a class called "INspector wrapper" which implements the "Outlook::
InspectorEvents"
for every new email a new Instance of this class will be created.


I have a class called "BtnWrapper" which implments the "Office::
_CommandBarButtonEvents"
for every button created a new Instance of this class will be created.


I m adding the button in the "Active" event of Inspector.

Thanks in Advance.
 

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

Top