Articles in this section
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:

Hide the ribbon display option

Figure 1: RibbonDisplayOption hidden

Show the ribbon display option

Figure 2: RibbonDisplayOption visible

Samples:

C#: https://files2.syncfusion.com/login?ReturnUrl=%2Fdtsupport%2Fdirecttrac%2F139533%2FRibbonDisplayOption-467361678.zip

VB: https://files2.syncfusion.com/login?ReturnUrl=%2Fdtsupport%2Fdirecttrac%2F135492%2FRibbonDisplayOption_VB-931542614.zip

Reference link: https://help.syncfusion.com/windowsforms/ribbon/working-with-ribbon

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment