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.
Unfortunately, activation email could not send to your email. Please try again.

How to set custom image in the RibbonControlAdv header?

You can render the custom image in the RibbonControlAdv Header. To set the custom header image in the RibbonControlAdv, do the following,

  1. Specify the RibbonHeaderImage property as the RibbonHeaderImage.Custom.
  2. Assign the required image to the RibbonControlAdv by using the CustomRibbonHeaderImage property.

The following code example demonstrates the same.

 

C#

 

VB

 

Note: The default value of the RibbonHeader image is specified as RibbonHeaderImage.None. So, specify the required image.

 

 

Figure 1: Before applying the custom header image in RibbonControlAdv

Figure 2: After applying the custom header image in RibbonControlAdv

Figure 3: Before applying the custom header image in BackStageView

Figure 4: After applying the custom header image in BackStageView

Sample Links:

C#: RibbonHeader_CustomImage_C#

VB: RibbonHeader_CustomImage_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
5406 09/04/2015 09/04/2015 Windows Forms RibbonControlAdv
Did you find this information helpful?
Comments
William Rodrigues Aug 05, 2018

How to add RibboneaderImagem collection in a ToolStripCheckBox?

Reply
Senthil Kumaran Rajan [Syncfusion] Aug 06, 2018

Hi William, 

 
Thank you for using Syncfusion products. 
 
We have prepared the sample for the reported requirement in RibbonControlAdv. Please make use of the below code example. 
 
Code Example[C#]: 
 
private void Form1_Load(object sender, EventArgs e) 
        { 
            // Add the RibbonHeaderImage items in ToolStripComboBox 
            foreach (RibbonHeaderImage item in Enum.GetValues(typeof(RibbonHeaderImage))) 
            { 
                this.toolStripComboBox1.Items.Add(item); 
            } 
        } 
 
        private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e) 
        { 
            if (this.toolStripComboBox1.SelectedItem != null) 
            { 
                this.ribbonControlAdv1.RibbonHeaderImage = (RibbonHeaderImage)Enum.Parse(typeof(RibbonHeaderImage),this.toolStripComboBox1.SelectedItem.ToString()); 
            } 
        } 
 
 
Please download the sample from below link. 
 
 
Regards, 
Senthil
Reply
Add Comment
You must log in to leave a comment

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.