ppt lesson 01

31
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic

Upload: linda-bodrie

Post on 19-May-2015

2.519 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS

Lesson 1

A First Look at Microsoft Visual Basic

Page 2: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 2

Objectives

Explain the purpose of Microsoft Visual Basic.

Start Visual Studio 2005. Open an existing Visual Basic project. Explain the purpose of the components

on the compiler screen.

Page 3: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 3

Objectives (cont.)

Run a Visual Basic program. Position a form in a Visual Basic

program. Exit Visual Studio 2005.

Page 4: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 4

Introduction to Microsoft Visual Studio 2005

Microsoft Visual Studio 2005 Software development tool Allows you to use a variety of programming

languages Combines graphical interface and

programming code Makes program development as rapid as

possible

Page 5: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 5

Starting Visual Studio 2005

Visual Studio 2005 can be started from A shortcut on the desktop The Start button and All Programs menu

Integrated Development Environment (IDE) Program that includes tools for creating,

testing, and running computer programs

Page 6: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 6

Starting Visual Studio 2005 (cont.)

Page 7: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 7

Opening an Existing Visual Basic Project

Visual Studio 2005 stores programs in a group of files called a project.

The main project file has a VBPROJ extension.

The SLN file is the solution file.

Page 8: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 8

Opening an Existing Visual Basic Project (cont.)

Opening an existing Visual Basic project Click the Open Project button. Open the SLN file

That corresponds with the project you wish to open

Page 9: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 9

Opening an Existing Visual Basic Project (cont.)

Page 10: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 10

Components of the Compiler

Page 11: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 11

Menus and Toolbars

Visual Studio 2005 menu bar Contains some menus found in other

Windows programs Contains some that are unique to this

programming environment More than one toolbar available

The Standard toolbar appears by default.

Page 12: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 12

Menus and Toolbars (cont.)

Page 13: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 13

Menus and Toolbars (cont.)

Page 14: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 14

The Solution Explorer

Solution Explorer Allows you to see the forms and files that

make up your program Use the Solution Explorer

To access the forms on which you want to work

Page 15: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 15

The Solution Explorer (cont.)

Page 16: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 16

The Solution Explorer (cont.)

Page 17: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 17

The Solution Explorer (cont.)

Page 18: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 18

The Properties Window

Objects Pieces that make up a Visual Basic

program Each object has characteristics that can

be customized. Called properties

To see the properties of an object Use the Properties window

Page 19: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 19

The Properties Window (cont.)

Page 20: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 20

The Properties Window (cont.)

Page 21: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 21

The Toolbox

The Toolbox Allows you to add objects to forms Has tools for creating objects

Command buttons Text boxes Check boxes Option buttons Picture boxes Scroll bars

Page 22: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 22

The Toolbox (cont.)

Page 23: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 23

Running a Visual Basic Program

To run a Visual Basic program Click the Start Debugging button.

Found on the Standard toolbar

Debug version Can be stopped and examined in the IDE

Page 24: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 24

Running a Visual Basic Program (cont.)

Page 25: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 25

Exiting Visual Studio

Exiting Visual Basic Requires that you close Visual Studio 2005

Exit Visual Studio Choose Exit from the File menu. Click the Close box at the right side of the

Visual Studio title bar.

Page 26: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 26

Summary

Microsoft Visual Studio 2005 is a tool that allows you to create Windows programs. Visual Basic is a language you can use in Visual Studio 2005 that allows you to easily create complex programs.

Visual Studio 2005 can be started from a shortcut in the All Programs (or Programs) menu or from the desktop.

Page 27: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 27

Summary (cont.)

A Visual Studio 2005 project is made up of several files. Information about a project is stored in a file with a VBPROJ extension. A collection of projects is called a solution. Information about a solution is stored in a file with an SLN extension. To open a Visual Studio 2005 project, you simply have to open the SLN file.

Page 28: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 28

Summary (cont.)

Visual Basic has some menu items found in other Windows programs and some menu items that are unique to Visual Studio 2005.

The Standard toolbar appears by default and contains buttons for frequently used Visual Studio 2005 commands.

Page 29: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 29

Summary (cont.)

The Solution Explorer allows you to see and open the forms and other files that make up a project.

The Properties window lets you view the characteristics, or properties, of the objects that make up a Visual Basic program. The Properties window also allows you to make changes to those properties.

Page 30: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 30

Summary (cont.)

The toolbox holds the tools that allow you to add objects, such as command buttons, to a form.

To run a Visual Basic program,click the Start Debugging button from the Standard toolbar.

Page 31: Ppt lesson 01

Microsoft Visual Basic 2005 BASICS 31

Summary (cont.)

Exit Microsoft Visual Studio by choosing Exit from the File menu or by clicking the Close box on the Microsoft Visual Studio title bar.