| title | Adding Commands to Toolbars |
|---|---|
| description | Learn about adding your own commands to toolbars on windows in Visual Studio, including the main window, the Solution Explorer, and custom tool windows. |
| ms.date | 11/04/2016 |
| ms.topic | concept-article |
| author | tinaschrepfer |
| ms.author | tinali |
| ms.subservice | extensibility-integration |
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.
-
Add a toolbar explains how to add a toolbar to the set of toolbars in the main Visual Studio window.
-
Add a toolbar to a tool window explains how to add a toolbar to a tool window.
-
Add a command to the Solution Explorer toolbar explains how to add a command to the toolbar on the Solution Explorer.
-
Add a menu controller to a toolbar explains how to add a menu controller to a toolbar.
-
Dynamically add menu items explains how to add menu items dynamically in different contexts.