ComponentOne Ribbon for WinForms
C1Ribbon (Classic) Task-Based Help / Adding a Launcher Button to the Ribbon Group
In This Topic
    Adding a Launcher Button to the Ribbon Group
    In This Topic

    You can add a dialog box launcher button to the Ribbon group using the smart designer, Properties window, or Code Editor.

    To Add a Launcher Button Using the Smart Designer

    Complete the following steps:

    1. Using your mouse pointer, click the Ribbon group and hover over the group's caption area to enable the following floating toolbar:
    2. Click the Add Launcher Button button.

    To Add a Launcher Button Using the Properties Window

    Optionally, you can add a launcher button to the Ribbon group using the Properties window. Click the group on the Form to reveal the group properties in the Properties window. Locate the RibbonGroup.HasLauncherButton property's drop-down arrow and select True from the drop-down list.

    To Add a Launcher Button Programmatically:

    To add a launcher button to the group (RibbonGroup1), 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
        ' add launcher button
        Me.RibbonGroup1.HasLauncherButton = True
    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)
    {
        // add launcher button
        this.ribbonGroup1.HasLauncherButton = true;
    }