ComponentOne Ribbon for WinForms
C1Ribbon (Classic) Task-Based Help / Changing the Visual Style
In This Topic
    Changing the Visual Style
    In This Topic

    You can change the Ribbon's visual style, using the smart tag, smart designer, Properties window, or by adding code to set the C1Ribbon.VisualStyle property. Each option is described below.

    To Change the Visual Style Using the Smart Tag

    Complete the following steps:

    1. Select the Ribbon to activate the control.
    2. Click the smart tag () to enable the C1Ribbon Tasks menu.
    3. Select the Visual Style drop-down arrow and choose Office2007Black.

    To Change the Visual Style Using the Smart Designer

    Complete the following steps:

    1. Using your mouse pointer, hover over the Ribbon and click the smart designer tag . This enables the Ribbon floating toolbar:
    2. From the main toolbar, click the Change Ribbon's Visual Style button . The Visual Style dialog box appears.
    3. From the Ribbon Visual Style drop-down list, select the new color scheme from the list, for example, Office2007Black.

    To Change the Visual Style Using the Properties Window

    Optionally, you can change the C1Ribbon.VisualStyle property using the Properties window. Click the Ribbon to reveal the Ribbon properties in the Properties window. Locate the C1Ribbon.VisualStyle property's drop-down arrow and select the new Windows XP theme from the list, for example, Office2007Black.

    To Change the Visual Style Programmatically

    To change the Ribbon's visual style to Office2007Black, add the following code to your project:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    ' type the Imports directive for the namespace
    Imports C1.Win.C1Ribbon
     
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.C1Ribbon1.VisualStyle = C1.Win.C1Ribbon.VisualStyle.Office2007Black
    End Sub
    

    To write code in C#

    C#
    Copy Code
    // type the using directive for the namespace
    using C1.Win.C1Ribbon;
     
    private void Form1_Load(object sender, System.EventArgs e)
    {
        this.c1Ribbon1.VisualStyle = C1.Win.C1Ribbon.VisualStyle.Office2007Black;
    }