How to: Customize the Microsoft Office Menu
Applies to |
---|
The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office. Project type
Microsoft Office version
For more information, see Features Available by Application and Project Type. |
You can use the Ribbon Designer to add controls to the menu that opens when you click the Microsoft Office Button.
You can position controls next to any built-in control. A built-in control is a control that is already on the Microsoft Office Menu. For example, you can position a control next to the Save button. For more information, see Ribbon Designer.
To add controls to the Microsoft Office Menu
Open the Ribbon item in Design view.
For information about how to add a Ribbon (Visual Designer) item to your project, see How to: Get Started Customizing the Ribbon.
In the Ribbon Designer, click the Microsoft Office Button.
A menu designer appears. This design surface does not contain any controls.
From the Office Ribbon Controls tab of the Toolbox, drag any of the following controls onto the menu designer:
Button
CheckBox
Gallery
Menu
Separator
SplitButton
ToggleButton
Drag controls to move them to new positions on the menu.
To position a control before or after a built-in control in the Microsoft Office Menu
In the menu designer, select a control.
In the Properties window, expand the Position property.
In the drop-down list next to the PositionType property, select BeforeOfficeId or AfterOfficeId.
The OfficeId property appears under Position.
Set the OfficeId property to the ID of the built in control. For a list of control IDs, download 2007 Office System Document: Lists of Control IDs from the Microsoft Download Center.
See Also
Tasks
How to: Get Started Customizing the Ribbon
Walkthrough: Creating a Custom Tab by Using the Ribbon Designer