10
LESSON 1 GettinG Started with the ViSual Studio ide
Compressing a project into an archive is very useful because it keeps all of its files
together in a package. In particular, if you ever need to e-mail a project to someone
(for example, if you e-mail me at
can remove the
bin and obj directories, compress the project folder, and e-mail the
package as a single file. (If you’re sending the project to your instructor as part of
an assignment, rename the compressed file so it contains your name and the name
of the assignment, for example,
RodStephens6-1.zip.)
EXPLORING THE IDE
The Visual Studio IDE contains a huge number of menus, toolbars, windows, wizards, editors,
and other components to help you build applications. Some of these, such as the Solution Explorer
and the Properties window, you will use every time you work on a program. Others, such as the
Breakpoints window and the Connect to Device dialog box, are so specialized that it may be years
before you need them.
Figure 1-5 shows the IDE with a simple project loaded with some of the IDE’s most important pieces
marked. The following list describes those pieces.
1. Menus — The menus provide all sorts of useful commands. Exactly which commands are
available, which are enabled, and even which menus are visible depends on what kind of
editor is open in the editing area (#4). Some particularly useful menus include File (opening
old projects and creating new ones), View (finding windows), Project (adding new forms and
other items to a project), Debug (build, run, and debug the project), and Format (arrange
controls on a form).
2. Toolbars — The toolbars provide shortcuts for executing commands similar to those
in the menus. Use the Tools menu’s Customize command to determine which toolbars
are visible.
3. Solution Explorer — The Solution Explorer lists the files in the project. One of the most impor-
tant is Form1.cs, which defines the controls and code for the form named Form1. If you double-
click a file in the Solution Explorer, the IDE opens it in the editing area.
4. Editing Area — The editing area displays files in appropriate editors. Most often you will
use this area to design a form (place controls on it and set their properties) and write code
for the form, but you can also use this area to edit other files such as text files, bitmaps,
and icons.
5. Toolbox — The Toolbox contains controls and components that you can place on a form.
Select a tool and then click and drag to put a copy of the tool on the form. Notice that the
Toolbox groups controls in tabs (All Windows Forms, Common Controls, Containers,
Menus & Toolbars, and so on) to make finding the controls you need easier.
596906c01.indd 10 4/7/10 12:31:25 PM