How to: Add a Dialog Box Launcher to a Ribbon Group
You can add a dialog box launcher to any group on a Ribbon. A dialog box launcher is a small icon that appears in a group. Users click this icon to open related dialog boxes or task panes that provide more options that relate to the group.
Applies to: The information in this topic applies to document-level projects and application-level projects for the following applications: Excel 2013 and Excel 2010; InfoPath 2013 and InfoPath 2010; Outlook 2013 and Outlook 2010; PowerPoint 2013 and PowerPoint 2010; Project 2013 and Project 2010; Visio 2013 and Visio 2010; Word 2013 and Word 2010. For more information, see Features Available by Office Application and Project Type.
To add a dialog box launcher to a Ribbon group
-
Select the Ribbon code file (.vb or .cs file) in Solution Explorer.
-
On the View menu, click Designer.
-
In the Ribbon Designer, right-click any group, and then click Add DialogBoxLauncher.
Add code to the DialogLauncherClick event of the group to open a custom or built-in dialog box.