Toolbox

The Toolbox window displays controls that you can add to Visual Studio projects. To open Toolbox, choose Toolbox on the View menu.

Toolbox window

You can drag and drop different controls onto the surface of the designer you are using, and resize and position the controls.

Toolbox appears in conjunction with designer views, such as the designer view of a XAML file. Toolbox displays only those controls that can be used in the current designer. You can search within Toolbox to further filter the items that appear.

Note

For some project types, Toolbox may not show any items.

The .NET Framework version that your project targets also affects the set of controls visible in Toolbox. You can set your project to target a different version of the .NET Framework from the project's property pages. Select the project node in Solution Explorer, and then on the menu bar, choose Project > <project> Properties. On the Application tab, use the Target framework drop-down.

Managing the Toolbox window and its controls

By default Toolbox is collapsed along the left side of the Visual Studio IDE, and appears when the cursor is moved over it. You can pin Toolbox (by clicking the Pin icon on its toolbar) so that it remains open when you move the cursor. You can also undock the Toolbox window and drag it anywhere on your screen. You can dock, undock, and hide Toolbox by right-clicking its toolbar and selecting one of the options.

You can rearrange the items in a Toolbox tab or add custom tabs and items by using the following commands on the context menu:

  • Rename item - Renames the selected item.

  • Show All - Shows all possible controls (not just the ones that apply to the current designer).

  • List View - Shows the controls in a vertical list. If unchecked, the controls appear horizontally.

  • Choose Items - Opens the Choose Toolbox Items dialog box so that you can specify the items that appear in the Toolbox. You can show or hide an item by selecting or clearing its check box.

  • Sort items alphabetically - Sorts the items by name.

  • Reset Toolbar - Restores the default Toolbox settings and items.

  • Add Tab - Adds a new Toolbox tab.

  • Move Up - Moves the selected item up.

  • Move Down - Moves the selected item down.

Creating and distributing custom Toolbox controls

You can create custom Toolbox controls, starting either with a project template that's based on Windows Presentation Foundation or on Windows Forms. You can then distribute your custom control to your teammates, or publish it on the web by using the Toolbox Controls Installer.

Help on Toolbox tabs

The following topics provide more information about some of the available Toolbox tabs.