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 change the appearance of the ToolStripEx control?

The appearance of the ToolStripEx can be customized by the following steps.

  1. Create the ColorTable for customization.
  2. Apply the ColorTable value to the CustomRenderer class.
  3. Then, proceed to assign the Custom Render class to the ToolStripEx renderer.

 

To create custom Color Table

By creating the custom Color Table, you can assign the required color to the Custom Render class. Here, CustomOffice12Colors class is initialized for this purpose.

 

To apply ColorTable to the Custom Renderer class

Create a custom renderer class with the required ColorTable value applied to it. Here, the Office12ToolStripRenderer class is initialized for this purpose.

 

To assign the Custom render class to the ToolStripEx

The Renderer property in the ToolStripEx helps to apply the custom renderer.

 

The following code example demonstrates the same.

C#

 

VB

 

Note: The appearance of the ToolStripEx can be changed by using the “VisualStyle property.

 

Figure 1: Default Color scheme of the ToolStripEx

Figure 2: ToolStripEx is specified with the Metro Style

Figure 3: Custom color is specified for ToolStripEx

 

Sample Links:

C#: ToolStripEx_CustomColor_C#

VB: ToolStripEx_CustomColor_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
1465 04/30/2011 08/10/2015 Windows Forms RibbonControlAdv
Did you find this information helpful?
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.