Articles in this section
Category / Section

How to remove menu button image in WinForms RibbonControlAdv?

1 min read

Remove menu button image

The image can be placed near the menu button or removed by using the MenuButtonImage property in WinForms RibbonControl. This property can be used as shown in the following code snippet.

C#

private void checkBoxAdv1_CheckStateChanged(object sender, EventArgs e)
{
    if (this.checkBoxAdv1.Checked)
        this.ribbonControlAdv1.MenuButtonImage = global::MenuButtonImage.Properties.Resources.images__2;
    else
        this.ribbonControlAdv1.MenuButtonImage = null;
}

VB

Private Sub checkBoxAdv1_CheckStateChanged(sender As Object, e As EventArgs)
    If Me.checkBoxAdv1.Checked Then
        Me.ribbonControlAdv1.MenuButtonImage = Global.MenuButtonImage.Properties.Resources.images__2
    Else
        Me.ribbonControlAdv1.MenuButtonImage = Nothing
    End If
End Sub

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/MenuButtonImage_(2)-356496410.zip

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
Access denied
Access denied