How to use the toolbox (Visual Studio)
Here is a reference list of common Toolbox tasks and how to do them:
|Open the Toolbox||On the View menu, click Toolbox.|
|Make the Toolbox close automatically||Open the Toolbox. On the Window menu, select Auto Hide.|
|Make the Toolbox stay open||Open the Toolbox. On the Window menu, clear Auto Hide.|
|Move the Toolbox to a different location||Open the Toolbox. On the Window menu, clear Auto Hide, and then select Floating. Drag the Toolbox to the desired location.|
|Conceal the Toolbox||In the Window menu, select Hide. (To reopen the Toolbox, click Toolbox on the View menu.)|
|Expand a Toolbox tab||Click the desired tab in the Toolbox.|
|Expand Toolbox tabs one after another||Press CTRL+DOWN ARROW to expand the next Toolbox tab, or CTRL+UP ARROW to expand the previous tab.|
|Scroll through an expanded list of items on a Toolbox tab||Click the UP triangle at the top of the expanded list, or the DOWN triangle at the bottom of the list.|
|Insert a Toolbox item at the selected location on the active designer||Double-click the desired item on the expanded Toolbox tab.|
|Cycle through items that have been copied or pasted to the Clipboard Ring tab using the keyboard||In the active editor or designer, press CTRL+SHIFT+V repeatedly until the desired item from the Clipboard Ring tab appears.|
|Add a component to those displayed in the Toolbox||Click Add/Remove Toolbox Items on the Tools menu.|
|Store a text or markup fragment in the Toolbox||Select the desired scrap of text or code in the editor and drag it onto the desired tab of the Toolbox.|
|Move an item from one Toolbox tab to another||Drag the item from the expanded Toolbox tab onto another tab, or use cut and paste. Items that cannot be moved are copied instead.|
|Copy an item from one Toolbox tab to another||Press CTRL and drag the item from the expanded Toolbox tab onto the name of another tab, or use copy and paste.|
|Display all available Toolbox tabs, regardless of context||Right-click any Toolbox tab and choose Show All Tabs from its shortcut menu.|
|Remove an item from the Toolbox||Select the Toolbox item, and click Delete on the Edit menu. Certain items, such as the Pointer, cannot be removed.|
|Change the position of a tab in the Toolbox||Drag the Toolbox tab to the new location preferred, and release the mouse.|
|Change the position of an item on an expanded Toolbox tab||Drag the item to the new location, and release the mouse.|
|Rename a Toolbox item||Right-click the Toolbox item, and click Rename Item on the shortcut menu.|
To cycle through expanded Toolbox tabs
- In the active editor or designer, press CTRL+DOWN ARROW to expand the next Toolbox tab, or CTRL+UP ARROW to expand the previous tab.
To show all tabs in the Toolbox, or conceal all those not in use
- In the Toolbox window, right-click any tab, and then select or clear Show All Tabs.
To display items on a Toolbox tab as compact icons or in labeled lists
- In the Toolbox window, right-click the desired tab, and then select or clear List View.
To sort the items on a Toolbox tab alphabetically
- In the Toolbox window, right-click the desired tab, and then choose Sort Items Alphabetically.
To use the Clipboard Ring tab
- To store an item on this tab, select the item and press SHIFT+CTRL+C, or drag the item to the Clipboard Ring tab.
- To paste in the most recent item on the Clipboard Ring, press SHIFT+CTRL+V. Keep pressing SHIFT+CTRL+V to cycle through Clipboard Ring items until the desired entry appears.
To add a custom tab to the Toolbox
- Right-click any existing tab, and click Add Tab on the shortcut menu.
- In the text box at the bottom of the Toolbox, type a name for the new tab, and press ENTER.
You can then select the tab and add other items. Use custom tabs to store favorite controls, text scraps, and other frequently used items.
Note The new tab appears at the bottom of the Toolbox window, with the Pointer tool automatically added.
To remove a custom tab from the Toolbox
- Right-click the Toolbox tab you no longer need, and click Remove Tab.
A message box informs you that any items on the tab will be deleted.
- If you still need any item on this tab, click No, and then drag the items you need to other Toolbox tabs.
- When you have removed all the items you need, click Remove Tab again, and click Yes to delete the selected tab from the Toolbox.
To add or remove items on a Toolbox tab
- On the Tools menu, choose Add/Remove Toolbox Items.
The Customize Toolbox dialog box opens.
- In the Customize Toolbox dialog box, click from tab to tab to browse through available categories of Toolbox items.
- In each category, either:
Select the items you want to add, and clear those you want to remove.
- or -
Click Browse to add items not available on the current list.
- Click OK to close the Customize Toolbox dialog box. New tools are added to the tab currently selected in the Toolbox. From there, you can drag them to other tabs. Items deselected in Customize Toolbox no longer appear on their former tabs.
Note Some controls added to the Toolbox must be registered on your computer to be used in Visual Studio.
To rename Toolbox tabs
- In the Toolbox, right-click the desired tab, and then click Rename Tab.
- In the text box, type a new name for the tab and press ENTER.
To rename items on Toolbox tabs
- In the Toolbox, right-click the desired tab item, and click Rename Item.
- In the text box, type a new name for the item, and then press ENTER.
To reposition items on a tab
- In the Toolbox, right-click the item you wish to reposition, and then click Move Up or Move Down.
Note When you deselect List View to display Toolbox items as compact icons, Move Up shifts the selected icon to the left, and Move Down shifts it to the right.