Datasheet
P1: GIG
WY006-01 WY006-Sample WY006-Sample-v3.cls January 29, 2004 17:49
Welcome to Visual Basic .NET
Figure 1-13
The Toolbox
The Toolbox is accessed via the View ➪ Toolbox menu option, the Toolbox icon on the Standard menu bar,
or by pressing Ctrl+Alt+X. Alternatively, the Toolbox tab is displayed on the left of the IDE and hovering
your mouse over this tab will cause the Toolbox window to fly out, partially covering your form.
The Toolbox contains a tabbed view of the various controls and components that can be placed onto your
form. Controls such as text boxes, buttons, radio buttons, and combo boxes can be selected and then
drawn onto your form. For the HelloUser application, you will only be using the controls on the Windows
Forms tab.
In Figure 1-14 you can see a partial listing of standard .NET controls for Windows Forms. The down
arrow button to the right of the Clipboard Ring tab title actually scrolls the Windows Forms control list
down as there are too many controls to fit. The up arrow button to the right of the Windows Forms tab
scrolls the list up. Note that the order in which your controls appear may be different.
Controls can be added to your forms in any order, so it does not matter if you add the label control after
the textbox or the buttons before the label.
Try It Out Adding Controls to the HelloUser Application
1.
Stop the project if it is still running, as you now want to add some controls to your form. The
simplest way to do this is to click the X button in the top-right corner of the form. Alternatively,
you can click on the blue square in the Visual Studio .NET IDE (which displays a tool tip of Stop
Debugging if you hover over it with your mouse pointer).
2. Add a Label control to the form. Click Label in the Toolbox to select it. Move the cursor over the
form’s Designer. You’ll notice that the cursor looks like a crosshair with a little floating letter A
beneath it. Click and hold the mouse button where you want the top-left corner of the label and
23