Issues with Inspector custom command button

M

Mike Lindeboom

I have implemented an Outlook add-in that maintains a collection of
Inspectors (one for each open MailItem). Each inspector has a custom
command button. The tag name for each button differs by the index
number of the inspector (as it is seen in the collection of
inspectors).

PROBLEM: When any custom button is hit, the click event is sent to the
custom button for every open inspector.

What have I missed? Is there an easy resolution to this problem?
 
K

Ken Slovak - [MVP - Outlook]

If the tags are genuinely unique then that should not be happening. Are you
sure of that?

I use that method all the time and never have had multiple click events fire
in multiple Inspector classes.

Show some of the code you're using. Maybe it provides a clue to the problem.
You are setting the OnAction property of the buttons to the ProgID for the
addin, with the needed characters prepended and appended?
..OnAction = "!<" & gstrProgID & ">"
 

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