Using CommandBarButton in Multiple Inspectors

  • Thread starter Thread starter Dv
  • Start date Start date
D

Dv

I got a COM AddIn that place a CommandBarButton in every Inspector object
that is opened. However, when someone opens more than one Inspector objects
that the Button only works for the most recently opened one. Does anyone
know of a way to overcome this and use CommandBarButtons with more than one
Inspectors?

thanks a lot.
 
You will need to use an Inspector wrapper class and collection, with the
buttons for each Inspector created in that Inspector's wrapper class. You
also will need to use unique Tag properties for each button you create or
else when one is clicked all will respond.

See http://www.slovaktech.com/code_samples.htm#InspectorWrapper for an
example of an Inspector wrapper.
 

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

Back
Top