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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the appearance of the ToolStripEx control?

Platform: WinForms |
Control: RibbonControlAdv |
Published Date: April 30, 2011 |
Last Revised Date: August 10, 2015

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

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.

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