Category / Section
How to show or hide the RibbonDisplayOption in the WinForms RibbonControlAdv?
1 min read
Show or hide the ribbon display option
In the RibbonControlAdv, the Ribbon display option button can be shown/hidden by using the property, ShowRibbonDisplayOptionButton. The following code example demonstrates the same.
C#
//Hides the Ribbon display option button. this.ribbonControlAdv1.ShowRibbonDisplayOptionButton = false; //Shows the Ribbon Display option button. this.ribbonControlAdv1.ShowRibbonDisplayOptionButton = true;
VB
'Hides the Ribbon display option button. Me.ribbonControlAdv1.ShowRibbonDisplayOptionButton = False 'Show the Ribbon Display option button. Me.ribbonControlAdv1.ShowRibbonDisplayOptionButton = True
The following screenshots display the Ribbon display options:
Figure 1: RibbonDisplayOption hidden
Figure 2: RibbonDisplayOption visible
Samples:
Reference link: https://help.syncfusion.com/windowsforms/ribbon/working-with-ribbon