A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Buttons are added multiple times in New Inspector window



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 5th 09, 02:50 PM posted to microsoft.public.outlook.program_addins
KarthikonIT via OfficeKB.com
external usenet poster
 
Posts: 14
Default Buttons are added multiple times in New Inspector window

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 architecut
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.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200911/1

Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buttons are added multiple times in New Inspector window KarthikonIT via OfficeKB.com Add-ins for Outlook 4 November 6th 09 06:38 PM
inspector toolbar buttons get multiple events Saeed Add-ins for Outlook 3 September 28th 09 02:05 PM
Multiple Toolbars being added/Multiple Buttons being added to Mail Matt Add-ins for Outlook 5 May 12th 09 07:06 PM
Custom Image added to CommandBar Buttons Andrew Add-ins for Outlook 2 November 26th 08 02:26 PM
adding coomand bar buttons to inspector window Ram Add-ins for Outlook 4 May 26th 06 06:16 AM


All times are GMT +1. The time now is 09:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.