Is it possible to hide a (user created) Ribbon Tab at runtime?

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

Is it possible to hide a (user created) Ribbon Tab at runtime?
 
Leon Lai Kan




Posts: 200
Joined: 2018-12-20
Hi, Andrei

I am working on an add-in with 4 Ribbon Tabs.

In order not to overcrowd the Ribbon, and reduce confusion, I'd like to keep only 1 tab visible, and the others hidden until the user clicks a button (in the visible tab). This button will display all the hidden Ribbon Tabs. Another button will hide all the other ribbon tabs.

Can this be done?

Could you briefly explain what code to use?

Thanks
Leon
Posted 27 May, 2019 05:31:36 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Leon,

In the Click event of that button, you write: Me.MyOtherTab.Visible = True. (In C#, replace "Me" --> "this").


Andrei Smolin
Add-in Express Team Leader
Posted 27 May, 2019 06:01:08 Top
Leon Lai Kan




Posts: 200
Joined: 2018-12-20
Thanks Andrei

This works fine!

Best Regards,
Leon
Posted 27 May, 2019 06:15:27 Top