Customizing Commands and Toolbars

Visual Studio enables customizing other aspects of the IDE such as menus (including context menus) and toolbars. The next subsections cover both scenarios with examples.

Customizing an Existing Toolbar

Imagine you want to add another button to the Standard toolbar, such as the Close Solution command. Select Tools, Customize. When the Customize dialog displays, select the Commands tab. Then select the Toolbar item and from the related combo box pick up the Standard toolbar. Now the goal is adding a button, so click Add Command. This launches the Add Command dialog; here you just select the menu where the command is located (on the left) and the command itself (on the right). Select File on the left and Close ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.