Figure 3-8: Toolbox

The Toolbox has several tabs to organize related items. The Toolbox will always display certain tabs, such as General. The Toolbox will also display other tabs depending on the designer or editor you are using. Since we are using the Windows Forms Designer, the Toolbox also displays the Windows Forms tab.

Tip If you do not see the Windows Forms tab, it may be because you are in code view. If so,switch to designer view using the View | Designer menu command and the Windows Forms tab should appear.

The Windows Forms tab contains controls used for Windows Forms. By default, the Windows Forms tab shows the most commonly used controls. However, you may want to change which controls are shown in the Windows Forms tab. You may wish to add a control or, if the tab becomes too crowded with controls, to delete a control from those displayed by the tab.

You use the Customize Toolbox dialog box to change which controls are shown in the Windows Forms tab. Figure 3-9 shows the Customize Toolbox dialog box. You can display the Customize Toolbox dialog box either by the Tools | Customize Toolbox menu command or by right-clicking in the Windows Forms tab area and choosing Customize Toolbox from the context menu.


HIM L^f-sw, j n£! FijmtvKKkCnmpiifitTilj |

I NtflW

1 Pirt-

1 Lb»

■ : Vita&o" KAAI.* -O-H'jt 1

C \WlNSJl Ü|rtlKid£WiFL£X3 OtK

C* Fj&trq Qrtrd

c \wiuhii ^jmrrtipv^n.eQ MX

□ Mtaffn C1„,

□ ActfttMuvBC^if Obt«i


□ b-JtK.'.

C "'.-VlN',1 '¿K:lilil. /-4L"Jjh-l «X

hkcnmil AUtwt

Ill Adpevl Dktd

CMINNl^idJNriEVLHHr .ffl

□ I^pltepälfet


□ Jdtfw EwktDD™? ClotF


Er^= IDl*t

Cl ¿i*'« rijirrnMQ»

C -«W&HA-i Ukk*EtShntf£C

EI^I 11] .

L: Htivr UA:I

tWMl <&w\tttÜ£>tM&ri «a

_J ^

■ : Sij** AV4M» r(wj(g ^ r-sA-^N

OH | Zrrzt | BppH 1 H^ Figure 3-9: Customize Toolbox dialog box

The Customize Toolbox dialog box has two tabs, COM Controls and .NET Framework Components. Choose the .NET Framework Components tab.

The Name column, as its name suggests, displays the names of available components. There is a check box just before each name. Checking the check box will display the component on the Windows Forms tab when you click OK. Conversely, clearing the check box will remove the component from the Toolbox when you click OK.

You can use the context menu displayed by right-clicking the Toolbox to further customize the appearance of the Toolbox. Figure 3-8 shows the Toolbox in list view. You can toggle the display of the Toolbox between list view and icon view, shown in Figure 310, by choosing List View from the context menu. Whether a check mark appears next to List View in the context menu determines whether the Toolbox currently is displayed in list or icon view. The icon view takes up less screen space, but the list view, with its text description of each control, may be a better choice until knowing which icons represent which controls be comes second nature for you.

Was this article helpful?

0 0

Post a comment