)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to remove minimize the ribbon item from QAT dropdown in WinForms RibbonControlAdv?

Platform: WinForms |
Control: RibbonControlAdv |
Published Date: July 28, 2015 |
Last Revised Date: January 8, 2020

Remove the minimize ribbon item

In the RibbonControlAdv, the Ribbon Minimize button is visible, by default. The Minimize button can be customized by using the property, ShowMinimizeButton. However, the Minimize the Ribbon option shows in the QAT DropDown. The DropDown Items can be customized by handling the BeforeCustomizeDropDownPopup event. By using this event, QAT DropDown items can be added or removed based on the user requirement.

C#

//Hides the Ribbon Minimize button.
this.ribbonControlAdv1.ShowMinimizeButton = false;
//This event occurs before the DropDown popup.
this.ribbonControlAdv1.BeforeCustomizeDropDownPopup += new DropDownEventHandler(ribbonControlAdv1_BeforeCustomizeDropDownPopup);
void ribbonControlAdv1_BeforeCustomizeDropDownPopup(object sender, DropDownEventArgs e)
{
    //Removes the specified item.
    e.DropDown.Items.RemoveAt(e.DropDown.Items.Count - 1);
}

VB

'Hides the Ribbon Minimize button.
Me.ribbonControlAdv1.ShowMinimizeButton = False
'This event occurs before the DropDown popup.
AddHandler ribbonControlAdv1.BeforeCustomizeDropDownPopup, AddressOf ribbonControlAdv1_BeforeCustomizeDropDownPopup
Private Sub ribbonControlAdv1_BeforeCustomizeDropDownPopup(ByVal sender As Object, ByVal e As DropDownEventArgs)
    'Removes the specified item.
    e.DropDown.Items.RemoveAt(e.DropDown.Items.Count - 1)
End Sub

 

Minimize the ribbon button in RibbonForm

Figure 1: Ribbon Minimize button in the RibbonForm

 

Show the Minimize ribbon option in QAT dropdown

Figure 2: “Minimize the Ribbon” option in the QAT DropDown

 

Ribbon minimize button is hidden in RibbonForm

Figure 3: Ribbon Minimize button hidden in the RibbonForm

 

Show the minimizw the ribbon option hidden in the QAT dropdown

Figure 4: “Minimize the Ribbon” option hidden in the QAT DropDown

Samples:

C#: http://www.syncfusion.com/downloads/support/directtrac/114877/ze/Ribbon_QAT_Item-2021116074

VB: http://www.syncfusion.com/downloads/support/directtrac/114877/ze/Ribbon_QAT_Item_VB-1783759437

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon