Adding Commands to Toolbars

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.