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

inspector toolbar buttons get multiple events



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 7th 09, 12:15 AM posted to microsoft.public.outlook.program_addins
Saeed
external usenet poster
 
Posts: 13
Default inspector toolbar buttons get multiple events

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
  #2  
Old September 8th 09, 04:43 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default inspector toolbar buttons get multiple events

Make sure you use a unique Tag property for every button you add.

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


"Saeed" wrote in message
...
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.


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

  #4  
Old September 28th 09, 03:05 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default inspector toolbar buttons get multiple events

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.

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


"bustanji83" wrote in message
...

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.


 




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
Adding custom buttons to the Standard toolbar versus a custom toolbar [email protected] Add-ins for Outlook 2 October 9th 08 06:13 PM
CommandBarComboBox on inspector toolbar bstrum Add-ins for Outlook 3 September 17th 07 11:50 PM
Inspector and adding a custom toolbar Paul Heinisch Add-ins for Outlook 7 September 5th 06 07:00 PM
adding coomand bar buttons to inspector window Ram Add-ins for Outlook 4 May 26th 06 07:16 AM
add toolbar in inspector contact item Irene Outlook and VBA 1 February 24th 06 10:23 PM


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


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.