Title: Introduction to the Visual C
12
- Introduction to the Visual C 2005 Express
Edition IDE
2- Seeing is believing.
- Proverb
- Form ever follows function.
- Louis Henri Sullivan
- Intelligence is the faculty of making artificial
objects, especially tools to make tools. - Henri-Louis Bergson
3OBJECTIVES
- In this chapter you will learn
- The basics of the Visual Studio Integrated
Development Environment (IDE) that assists you in
writing, running and debugging your Visual C
programs. - Visual Studio's help features.
- Key commands contained in the IDE's menus and
toolbars. - The purpose of the various kinds of windows in
the Visual Studio 2005 IDE. - What visual programming is and how it simplifies
and speeds program development. - To create, compile and execute a simple Visual C
program that displays text and an image using the
Visual Studio IDE and the technique of visual
programming.
4- 2.1 Introduction
- 2.2 Overview of the Visual Studio 2005 IDE
- 2.3 Menu Bar and Toolbar
- 2.4 Navigating the Visual Studio 2005 IDE
- 2.4.1 Solution Explorer
- 2.4.2 Toolbox
- 2.4.3 Properties Window
- 2.5 Using Help
- 2.6 Using Visual Programming to Create a Simple
Program Displaying Text and an Image - 2.7 Wrap-Up
- 2.8 Web Resources
5Fig. 2.1 Start Page in Visual C 2005 Express
Edition.
6Fig. 2.2 Displaying a Web page in Visual Studio.
7Fig. 2.3 New Project dialog.
8Fig. 2.4 Design view of the IDE.
9Fig. 2.5 Example of a text box control in the
Visual Studio IDE.
10Fig. 2.6 Examples of buttons in the Visual
Studio IDE.
11Fig. 2.7 Visual Studio menu bar.
12Fig. 2.8 Summary of Visual Studio 2005 IDE
menus (Part 1 of 2).
13Fig. 2.8 Summary of Visual Studio 2005 IDE
menus (Part 2 of 2).
14Fig. 2.9 Standard toolbar in Visual Studio.
15Fig. 2.10 Adding the Build toolbar to the IDE.
16Fig. 2.11 IDE toolbar icon showing additional
commands.
17Fig. 2.12 Tool tip demonstration.
18Fig. 2.13 Toolbar icons for three Visual Studio
windows.
19Fig. 2.14 Auto-hide feature demonstration.
20Fig. 2.15 Displaying a hidden window when
auto-hide is enabled.
21Fig. 2.16 Disabling auto-hide (pinning down a
window).
22Fig. 2.17 Solution Explorer with an open
project.
23Fig. 2.18 Solution Explorer showing plus boxes
and minus boxes for expanding and collapsing the
tree to show or hide project files.
24Fig. 2.19 Solution Explorer expanding the
Properties file after clicking its plus box.
25Fig. 2.20 Solution Explorer collapsing all
files after clicking any minus boxes.
26Fig. 2.21 Toolbox window displaying controls
for the Common Controls group.
27Fig. 2.22 Properties window displaying the Text
property of the Form.
28Fig. 2.23 Help menu commands.
29Fig. 2.24 Dynamic Help window.
30Fig. 2.25 Using context-sensitive help.
31Fig. 2.26 Options dialog displaying Help
settings.
32Fig. 2.27 Simple program executing.
33Fig. 2.28 New Project dialog.
34Fig. 2.29 Save Project dialog.
35Fig. 2.30 Setting the project location in the
Project Location dialog.
36Fig. 2.31 Setting the forms Text property in
the Properties window.
37Fig. 2.32 Form with enabled sizing handles.
38Fig. 2.33 Resized form.
39Fig. 2.34 Changing the forms BackColor
property.
40Fig. 2.35 Form with new BackColor property
applied.
41Fig. 2.36 Adding a label to the form.
42Fig. 2.37 Changing the Labels AutoSize
property to False.
43Fig. 2.38 GUI after the form and Label have
been customized.
Label centered with updated Text property
Sizing handles
44Fig. 2.39 Properties window displaying the
Labels properties.
45Fig. 2.40 Font dialog for selecting fonts,
styles and sizes.
46Fig. 2.41 Centering the Labels text.
47Fig. 2.42 Inserting and aligning a PictureBox.
48Fig. 2.43 Image property of the PictureBox.
49Fig. 2.44 Select Resource dialog to select an
image for the PictureBox.
50Fig. 2.45 Select Resource dialog displaying a
preview of selected image.
51Fig. 2.46 Scaling an image to the size of the
PictureBox.
52Fig. 2.47 PictureBox displaying an image.
53Fig. 2.48 Building a solution.
54Fig. 2.49 IDE in run mode, with the running
program in the foreground window.