No point in adding the link to the HowTos unless it contains the answer ;)

Where in the example does it show how to delete the button programmatically, and where does it show how to specify where the button appears in the CommandBar, i.e. set the order in which the buttons appear?

Have I missed something? Thanks.

BTW, from the web site, the HowTos link kept sending me to the version 1 HowTos, not version 2's.

The HOWTOS #11 shows how to create command bars and their controls programmatically for ADX 2. This website contains info about Add-in Express 2 only.
Could you please point me where have you found a link to V1.

In my application I need to delete/create buttons on the command bar programmatically based upon a combobox selection. None of the HowTos seem to describe this.

I have found CommandBar.Controls.DeleteControl(Index, Temporary) but don't know what Index is. I think it is OfficeIndex. I used OfficeIndex but it always seemed to delete one more button than it should ... the correct button and a button created at design time. It keeps deleting an extra design-time button each time I make a combobox selection.

If, for example, I need to delete 3 buttons, the code calls DeleteControl 3 times but deletes 4 buttons.

I've checked the code quite thoroughly so I'm hoping that either DeleteControl is wrong, or Index is not OfficeIndex.

This technology is now available for our custom development services only. Based on the Add-in Express for Office core, it is designed for building custom-tailored Office add-ins with far less coding than you usually have to do. Plus, it includes all Add-in Express features such as True RAD, visual designers, Outlook view and form regions, etc.

Get the best platform for building version-neutral, fast and easy deployable plug-ins by using Add-in Express projects templates, visual designers, components and wizards in combination with a perfect Delphi compiler.

This is an extension for Visual Studio that allows developers to quickly create WiX-based setup projects in a familiar Visual Studio way.

The Designer for WiX Toolset lets you forget the plain Windows Installer XML and concentrate on your deployment logic. It integrates several editors with the Visual Studio IDE and provides a set of vdproj designers to configure the file system, registry, user interface, custom actions, launch conditions and more for your setup projects.

The innovative technology for customizing Outlook views and forms. It is included in all Add-in Express for Office products and can be used to extend Outlook views, e-mail, task and appointment windows, To-Do bar, Reading and Navigation panes with your own custom sub-panes.

Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in
the United States and/or other countries. All other trademarks are property of their respective owners.