Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / December 2004

Tip: Looking for answers? Try searching our database.

Using CommandBarButton in Multiple Inspectors

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dv - 24 Dec 2004 06:17 GMT
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.
Ken Slovak - 24 Dec 2004 13:54 GMT
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.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

>I got a COM AddIn that place a CommandBarButton in every Inspector object
> that is opened. However, when someone opens more than one Inspector
[quoted text clipped - 5 lines]
>
> thanks a lot.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.