E3062 - Introduction to Visual Basic 6

+2

No comments posted yet

Comments

Slide 1

Introduction to Visual Basic Programming ZEDZ@PSIS VB Chapter 1 E3062

Slide 2

At the end of the lesson, students should be able : OBJECTIVES Chapter 1 VB To understand basic concept of VB. To explain visual programming concepts with ‘WYSIWYG’ characteristic. Introduce Integrated Development Environment in VB. Understand the basic structure of project. Identify the standard VB objects & window characteristics ZEDZ@PSIS

Slide 3

WHAT IS VISUAL ? Chapter 1 VB ZEDZ@PSIS Visual refers to the representation of an object in graphical form. Objects in VB are Label, TextBox, Frame, Scrollbar, ListBox, ComboBox, CheckBox, Shape, Image, PictureBox etc. These objects are available in the visual programming language. INFO

Slide 4

WHY GRAPHICAL REPRESENTATION? Chapter 1 VB ZEDZ@PSIS Graphical representation enables programs to be developed effortlessly. The program appears to be more interesting to the user. Development of a more user-friendly program.

Slide 5

Visual Basic (VB) is a high level programming language. It evolved from the earlier DOS version called BASIC (Beginner’s All-Purpose Symbolic Instruction Code) programming language. The concept was co-founded by Prof John Kenemy & Thomas Kurtz from Dartmouth College, USA. VISUAL BASIC IN A NUTSHELL VB ZEDZ@PSIS

Slide 6

VISUAL BASIC IN A NUTSHELL VB ZEDZ@PSIS Designed specifically to cater Window Forms Application (WFA) & Internet Application development. Apply the visual programming concept with ‘WYSIWYG’ characteristic.

Slide 7

ZEDZ@PSIS WYSIWYG ? VB WYSIWYG is an abbreviation for What You See Is What You Get! INFO

Slide 8

VB is a visual & events driven programming language. VISUAL BASIC IN A NUTSHELL Chapter 1 VB ZEDZ@PSIS In VB, programmer is required to design the interface application that contain the graphic objects including the functions based on the events. INFO Events are actions that take place when the user does something to the object. TIPS

Slide 9

DIFF. BETWEEN VB & C PROGRAM Chapter 1 VB ZEDZ@PSIS The functions of VB are differently developed. Each function is developed to instruct an object to perform actions based on the event that has taken place. However, in C++ programming, the functions built into a program are program components that are ‘called’ from the main program.

Slide 10

ADVANTAGES OF VISUAL BASIC Chapter 1 VB ZEDZ@PSIS Provides easy graphic interface 1 2 3 Capable of achieving API The convenience of OOP Controls errors in writing 4 5 Can implement structural programs INFO API is a set of programming instructions and standards for Accessing a Web-based software application or Web-tool.

Slide 11

CONVENIENCE OF OOP ? Chapter 1 VB ZEDZ@PSIS INFO OOP  Object Oriented Programming. When an application / project is created by using objects and combining them to produce results, then the application developer is definitely working in an object - oriented environment.

Slide 12

OBJECT ELEMENTS IN VB Chapter 1 VB ZEDZ@PSIS Objects are a combination of code and data which can be treated as a single item. Objects provide code which you don’t have to write! Objects (in the form of control) are the single biggest reason why VB is better. If an objects is copied or saved, both the code and data will also be respectively copied & saved. TIPS

Slide 13

OBJECT ELEMENTS IN VB Chapter 1 VB ZEDZ@PSIS

Slide 14

OBJECT ELEMENTS IN VB Chapter 1 VB ZEDZ@PSIS

Slide 15

VB APPLICATION BUILDING STEPS Chapter 1 VB ZEDZ@PSIS Design the interface 1 2 3 Set the control (Object) properties Write the event procedures

Slide 16

STARTING VISUAL BASIC Chapter 1 VB ZEDZ@PSIS

Slide 17

VISUAL BASIC 6.0 MAIN INTERFACE Chapter 1 VB ZEDZ@PSIS Choose standard EXE & click Open. Alternatively, Alt – O performs similar action. TIPS

Slide 18

VISUAL BASIC 6.0 IDE ? Chapter 1 VB ZEDZ@PSIS Integrated Development Environment or IDE is a term used to describe the interface & environment used to create applications. Components of Visual Basic IDE: Menu Bar & Tool Bar Project Explorer Properties & Form Layout Window Tool Box Form Designer Object Browser

Slide 19

ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB

Slide 20

ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB The toolbars in the menu bar provide quick access to the commonly used commands.

Slide 21

ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB

Slide 22

ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB

Slide 23

ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB

Slide 24

ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB

Slide 25

STANDARD OBJECTS IN VB 6.0 Chapter 1 VB ZEDZ@PSIS

Slide 26

PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS Project Explorer contains three buttons that are called View Code View Object and Toggle Folders.

Slide 27

PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS

Slide 28

PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS

Slide 29

PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS

Slide 30

PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS

Slide 31

PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS

Summary: Introduction to Visual Basic 6 (VB6)

Tags: visual basic vb programming

URL:
More by this User
Most Viewed