다음을 통해 공유


Adding Commands to Toolbars

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

A toolbar is a horizontal or vertical strip that contains buttons bound to commands. You can add your own commands to toolbars on many different windows in Visual Studio: the main Visual Studio window, the Solution Explorer, and your own custom tool windows.

This section shows a number of things you can do with commands on toolbars.

In this Section

Adding a Toolbar
Explains how to add a toolbar to the set of toolbars in the main Visual Studio window.

Adding a Toolbar to a Tool Window
Explains how to add a toolbar to a tool window.

Adding a Command to the Solution Explorer Toolbar
Explains how to add a command to the toolbar on the Solution Explorer.

Adding a Menu Controller to a Toolbar
Explains how to add a menu controller to a toolbar.

Dynamically Adding Menu Items
Explains how to add menu items dynamically in different contexts.