You can add a dialog box launcher button to the Ribbon group using the smart designer, Properties window, or Code Editor.
Complete the following steps:
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 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; } |