UseForRibbon property for MainMenu

Add-in Express™ Support Service
That's what is more important than anything else

UseForRibbon property for MainMenu
UserForRibbon property or another way to hide my command bar and main menu at Outlook 2010 
Mikhail Belov


Guest


Hello, I have to support Outlook 2007 and Outlook 2010 in one project. I found http://www.add-in-express.com/creating-addins-blog/2010/04/30/office-commandbars-ribbon-ui/ that I can use UseForRibbon property to hide my command bar and show my ribbon tab instead of it at Outlook 2010.

However, I found that this property available only for ADXCommandBar. And what about ADXOlExplorerCommandBar? There is no that property for it. What is the difference between this components for Outlook add-in?

Also I need to do the same thing for main menu and again I have two components ADXMainMenu and ADXOlExplorerMainMenu, but I can't find the UseForRibbon property for non of them. Is it possible to prevent custom main menu from appearing at the "Add-Ins" ribbon tab at Outlook 2010?

And what components more suitable for me, ADX* or ADXOlExplorer*?

Thanks.
Posted 28 Jun, 2012 03:07:16 Top
Eugene Astafiev


Guest


Hi Mikhail,

Of course, all command bar components provides the UseForRibbon property. But only some of them allow to set the UseForRibbon property at design time in the Properties window of Visual Studio. You just need to set this property in the code (for example, in the AddinInitialize event handler) depending on the Office version.

Please take a look at the http://www.add-in-express.com/docs/net-commandbar-components.php#command-bars-ui section in the online documentation for more information on this.
Posted 28 Jun, 2012 07:17:29 Top