inspector toolbar buttons get multiple events

Status
Not open for further replies.
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.
 
K

Ken Slovak - [MVP - Outlook]

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

"Saeed" <Saeed> wrote in message

news:F6E3AB30-0B2B-4F18-83BE-64A511C08386@microsoft.com...
> 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.
 
B

bustanji83

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

Ken Slovak - [MVP - Outlook]

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.

"bustanji83" <bustanji83> wrote in message

news:1CF80810-9E5D-4212-89B1-C425C0B70793@microsoft.com...

> 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.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S Quick access toolbar in inspector window Outlook VBA and Custom Forms 3
M Outlook 2010 How could I globally redesign an outlook template form/region/inspector template used to display mail lists or an individual mails? Outlook VBA and Custom Forms 0
B Auto Preview Attachment in Inspector Reading Pane Outlook VBA and Custom Forms 1
D help with Item/Inspector close event Outlook VBA and Custom Forms 1
T New Inspector word editor crash Outlook 2003 Outlook VBA and Custom Forms 3
A running code after the new inspector is visible Outlook VBA and Custom Forms 1
N Modal form is not properly working on inspector Outlook VBA and Custom Forms 10
K add a designed group into a existing inspector ribbon Outlook VBA and Custom Forms 7
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
T How to get Inspector object from Window handle Outlook VBA and Custom Forms 2
K Get Inspector Ptr In Outlook 2007. Outlook VBA and Custom Forms 3
T How to get Inspector or MailItem from wordEditor Outlook VBA and Custom Forms 6
S PR_MESSAGEFLAGS & Compose/Read - Inspector Outlook VBA and Custom Forms 4
S Error 287 on Inspector.Close() Outlook VBA and Custom Forms 4
K Buttons are added multiple times in New Inspector window Outlook VBA and Custom Forms 4
V How to find mailitem in the inspector is a brand new one Outlook VBA and Custom Forms 2
A active inspector in memory Outlook VBA and Custom Forms 1
B How to get the path from an outlook.Inspector Outlook VBA and Custom Forms 4
M How to get active inspector window handle? Outlook VBA and Custom Forms 3
A disable a menu in active inspector Outlook VBA and Custom Forms 1
T Using Ribbon in Inspector window Outlook VBA and Custom Forms 2
P Inspector.WordEditor always returns null Outlook VBA and Custom Forms 3
Q Inspector Bug/Question Outlook VBA and Custom Forms 3
Z Inspector.CurrentItem causes Shared Calendar Issue Outlook VBA and Custom Forms 5
G How to add a folder shortcut to outlook quick access toolbar? Using Outlook 6
O Outlook 365 - Toolbar - Close all items - missing? Using Outlook 3
O Windows 1803 update : QAT and toolbar changed, language pack gone... Using Outlook 5
R Categorize Button in Quick Access Toolbar Disappears on New Email Using Outlook 1
F want inbox on toolbar to reference icloud messages Using Outlook 2
Diane Poremsky Synchronize Quick Access Toolbar and Ribbons? Using Outlook 0
soadfan Enable all rules from toolbar button? Outlook VBA and Custom Forms 3
J Adding Reply & Delete to main toolbar? Using Outlook 0
Diane Poremsky Customize the Outlook Toolbar, Ribbon or QAT Using Outlook 0
L Outlook 2007 Custom Form and Toolbar Not Working Using Outlook 5
E Outlook 2007: Problem with "Move to Folder >" button on toolbar Using Outlook 6
B Outlook 2007 Save Current View,Font,Toolbar Settings Using Outlook 6
L Outlook 2007 Toolbar Export and Import Using Outlook 7
V Avast! Antispam toolbar Using Outlook 11
B Trouble Locating Tools Menu since There's No Standard Toolbar in Office 2010 Using Outlook 1
N Combobox in outlook add ons toolbar not firing event on main window resized Using Outlook 3
B Outlook Toolbar disabled Using Outlook 1
P Can't add a custom hyperlink to toolbar in OL 2010 Using Outlook 1
E Blank Print Preview when access via the Quick Access toolbar Using Outlook 3
Commodore Back/Forward toolbar buttons with pull-down history? Using Outlook 5
D How can I add a user created template to the toolbar Outlook VBA and Custom Forms 1
D How do I run a rule by using a toolbar icon? Outlook VBA and Custom Forms 4
S How to Create Buttons in email body / toolbar Outlook VBA and Custom Forms 3
P Problem in temporary type toolbar Outlook VBA and Custom Forms 1
P Problem in permanent type add-in toolbar Outlook VBA and Custom Forms 6

Similar threads

Top