visual basic.net comprehensive concepts and techniques chapter 2 the visual basic.net integrated...
TRANSCRIPT
Visual Basic .NETComprehensive Concepts
and Techniques
Chapter 2
The Visual Basic .NET Integrated Development
Environment
2Chapter 2: The Visual Basic .NET Integrated Development Environment
Objectives
• Start Visual Basic .NET
• Customize the Visual Basic .NET integrated development environment
• Open a Visual Basic .NET project
• Describe the basic components of the Visual Basic .NET integrated development environment
• Run a Visual Basic .NET project
3Chapter 2: The Visual Basic .NET Integrated Development Environment
Objectives
• Set a property of a control
• Navigate the code window
• Modify code in an existing project
• Save a Visual Basic .NET project
• Print a Visual Basic .NET project’s form and code
4Chapter 2: The Visual Basic .NET Integrated Development Environment
Objectives
• Use Visual Basic .NET Help
• Quit Visual Basic .NET
5Chapter 2: The Visual Basic .NET Integrated Development Environment
Starting and Customizing Visual Basic .NET• Integrated Development Environment (IDE)• Click the Start button on the taskbar and then
point to All Programs on the Start menu• Point to Microsoft Visual Studio .NET on the All
Programs submenu• Point to Microsoft Visual Studio .NET on the
Microsoft Visual Studio .NET submenu• Click Microsoft Visual Studio .NET
6Chapter 2: The Visual Basic .NET Integrated Development Environment
7Chapter 2: The Visual Basic .NET Integrated Development Environment
Starting and Customizing Visual Basic .NET• Click the My Profile link on the left side of
the Start Page
• Click the Profile box arrow
• Click Visual Basic Developer in the Profile list
• Click the Get Started link on the left side of the Start Page
8Chapter 2: The Visual Basic .NET Integrated Development Environment
9Chapter 2: The Visual Basic .NET Integrated Development Environment
Opening an Existing Project
• Insert the Data Disk in drive A
• Click the Open Project button
• Select 3 ½ Floppy (A:) in the Look in box
• Double-click the Chapter 2 folder
• Double-click the Take-home pay calculator folder
10Chapter 2: The Visual Basic .NET Integrated Development Environment
Opening an Existing Project
• Click the Take-home pay calculator solution file
• Click the open button
11Chapter 2: The Visual Basic .NET Integrated Development Environment
Exploring the Visual Basic .NET Integrated Development Environment
• Menu Bar and Toolbars
• Status Bar
• Windows
• Components of a VisualBasic .NET Solution
12Chapter 2: The Visual Basic .NET Integrated Development Environment
Running a Project
• Click the Start button on the Standard toolbar• Click the Yearly salary box up arrow, until the
number 42,000 displays• Drag the Retirement plan contribution rate
trackbar to the fourth tick mark, which represents 3%
• Click Individual in the Insurance Plan area• Click the Close button on the Take-Home Pay
Calculator application window title bar
13Chapter 2: The Visual Basic .NET Integrated Development Environment
14Chapter 2: The Visual Basic .NET Integrated Development Environment
Modifying an Existing Project
• Modifying a Property of a Control– Click the Weekly take-home pay: Label
control on the Form1 form in the main work area
– Scroll the Properties list until the Text property is visible
– Double-click the Text property– Type Biweekly take-home pay: and
press the ENTER key
15Chapter 2: The Visual Basic .NET Integrated Development Environment
16Chapter 2: The Visual Basic .NET Integrated Development Environment
Modifying an Existing Project
• Navigating the Code Window– Click the Form1.vb tab at the top of the main
work area– Drag the code window scroll box to the bottom
of the code window
17Chapter 2: The Visual Basic .NET Integrated Development Environment
18Chapter 2: The Visual Basic .NET Integrated Development Environment
Modifying an Existing Project
• Navigating the code window– Object box– Procedure box– Keywords– Code region– Splitter bar
19Chapter 2: The Visual Basic .NET Integrated Development Environment
Modifying an Existing Project
• Modifying Code in the Code Window– Drag the code window scroll box up until the
code displays in the code window as shown:
20Chapter 2: The Visual Basic .NET Integrated Development Environment
Modifying an Existing Project
• Modifying Code in the Code Window– Click to the right of the number 52 in the sixth
code line of the fourth code region– Press the BACKSPACE key twice to delete
the number 52– Type 26 and do not press the ENTER key
21Chapter 2: The Visual Basic .NET Integrated Development Environment
22Chapter 2: The Visual Basic .NET Integrated Development Environment
Saving a Project
• Click the Form1.vb [Design] tab
• Click the Save All button on the Standard toolbar
23Chapter 2: The Visual Basic .NET Integrated Development Environment
Running a Project to Test Changes
• Click the Start button on the Standard toolbar• Click the Yearly salary box up arrow until the
number 42,000 displays• Drag the Retirement plan contribution rate
trackbar to the fourth tick mark, which represents 3%
• Click Individual in the Insurance Plan area• Click the Close button on the Take-Home Pay
Calculator application window title bar
24Chapter 2: The Visual Basic .NET Integrated Development Environment
25Chapter 2: The Visual Basic .NET Integrated Development Environment
Documenting the User Interface Design of a Form• With the Take-home pay calculator project
open in design time, press the PRINT SCREEN key
• Click the Start button on the Windows taskbar and then point to All Programs on the Start menu
• Point to Accessories on the All Programs submenu, and then point to Paint on the Accessories submenu
26Chapter 2: The Visual Basic .NET Integrated Development Environment
Documenting the User Interface Design of a Form• Click Paint
• When Paint opens, click Edit on the menu bar
• Point to Paste on the Edit menu
• Click Paste
• Click the File menu and select Print
27Chapter 2: The Visual Basic .NET Integrated Development Environment
Documenting the User Interface Design of a Form• Click the Print button• Click the Close button
on the Paint window title bar and do not save the pasted image
28Chapter 2: The Visual Basic .NET Integrated Development Environment
Documenting Code for a Form
• Click the Form1.vb tab to display the form code in the code window
• Click File on the menu bar
• Click Print on the File menu
• Click the OK button
• Click the Form1.vb [Design] tab
29Chapter 2: The Visual Basic .NET Integrated Development Environment
30Chapter 2: The Visual Basic .NET Integrated Development Environment
Visual Basic .NET Help
31Chapter 2: The Visual Basic .NET Integrated Development Environment
32Chapter 2: The Visual Basic .NET Integrated Development Environment
Visual Basic .NET Help
• Contents window
• Index window
• Search window
• Dynamic Help window
• Context-Sensitive Help
33Chapter 2: The Visual Basic .NET Integrated Development Environment
Quitting Visual Basic .NET
• Click the Visual Basic .NET Close button on the right side of the title bar
34Chapter 2: The Visual Basic .NET Integrated Development Environment
Summary
• Start Visual Basic .NET
• Customize the Visual Basic .NET integrated development environment
• Open a Visual Basic .NET project
• Describe the basic components of the Visual Basic .NET integrated development environment
• Run a Visual Basic .NET project
35Chapter 2: The Visual Basic .NET Integrated Development Environment
Summary
• Set a property of a control
• Navigate the code window
• Modify code in an existing project
• Save a Visual Basic .NET project
• Print a Visual Basic .NET project’s form and code
36Chapter 2: The Visual Basic .NET Integrated Development Environment
Summary
• Use Visual Basic .NET Help
• Quit Visual Basic .NET
Visual Basic .NETComprehensive Concepts
and Techniques
Chapter 2 Complete