37
Visual Basic .NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic .NET Integrated Development Environment

Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

Embed Size (px)

Citation preview

Page 1: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

Visual Basic .NETComprehensive Concepts

and Techniques

Chapter 2

The Visual Basic .NET Integrated Development

Environment

Page 2: Visual Basic.NET Comprehensive 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

Page 3: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 4: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

4Chapter 2: The Visual Basic .NET Integrated Development Environment

Objectives

• Use Visual Basic .NET Help

• Quit Visual Basic .NET

Page 5: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 6: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

6Chapter 2: The Visual Basic .NET Integrated Development Environment

Page 7: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 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

Page 8: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

8Chapter 2: The Visual Basic .NET Integrated Development Environment

Page 9: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 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

Page 10: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 11: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 12: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 13: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

13Chapter 2: The Visual Basic .NET Integrated Development Environment

Page 14: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 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

Page 15: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

15Chapter 2: The Visual Basic .NET Integrated Development Environment

Page 16: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 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

Page 17: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

17Chapter 2: The Visual Basic .NET Integrated Development Environment

Page 18: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 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

Page 19: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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:

Page 20: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 21: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

21Chapter 2: The Visual Basic .NET Integrated Development Environment

Page 22: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 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

Page 23: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 24: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

24Chapter 2: The Visual Basic .NET Integrated Development Environment

Page 25: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 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

Page 26: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 27: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 28: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 29: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

29Chapter 2: The Visual Basic .NET Integrated Development Environment

Page 30: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

30Chapter 2: The Visual Basic .NET Integrated Development Environment

Visual Basic .NET Help

Page 31: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

31Chapter 2: The Visual Basic .NET Integrated Development Environment

Page 32: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 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

Page 33: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 34: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 35: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

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

Page 36: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

36Chapter 2: The Visual Basic .NET Integrated Development Environment

Summary

• Use Visual Basic .NET Help

• Quit Visual Basic .NET

Page 37: Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment

Visual Basic .NETComprehensive Concepts

and Techniques

Chapter 2 Complete