0% found this document useful (0 votes)
37 views4 pages

Visual Basic 6 Notes

This document provides an introduction to Visual Basic 6.0, covering its environment, event-driven programming concepts, and application development fundamentals. It outlines the structure of a Visual Basic application, including forms, controls, properties, methods, and event procedures. Additionally, it highlights the advantages of using Visual Basic 6.0 compared to earlier versions and describes the steps involved in building an application.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views4 pages

Visual Basic 6 Notes

This document provides an introduction to Visual Basic 6.0, covering its environment, event-driven programming concepts, and application development fundamentals. It outlines the structure of a Visual Basic application, including forms, controls, properties, methods, and event procedures. Additionally, it highlights the advantages of using Visual Basic 6.0 compared to earlier versions and describes the steps involved in building an application.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

VISUAL BASIC 6.

Introduction to the Visual Basic Language and Environment

Preview

In this first class, we will do a quick overview of how to build an application in Visual Basic. You’ll
learn a new vocabulary, a new approach to programming, and ways to move around in the
Visual Basic environment. You will leave having written your first Visual Basic program.

Course Objectives

⇒ Understand the benefits of using Microsoft Visual Basic 6.0 for Windows as an application
tool

⇒ Understand the Visual Basic event-driven programming concepts, terminology, and available
tools

⇒ Learn the fundamentals of designing, implementing, and distributing a Visual Basic


application

⇒ Learn to use the Visual Basic toolbox ⇒ Learn to modify object properties ⇒ Learn object
methods

⇒ Use the menu design window ⇒ Understand proper debugging and error-handling
procedures

⇒ Gain a basic understanding of database access and management using databound controls

⇒ Obtain an introduction to ActiveX controls and the Windows Application Programming


Interface (API)

What is Visual Basic?

• Visual Basic is a tool that allows you to develop Windows (Graphic User Interface - GUI)
applications. The applications have a familiar appearance to the user.

• Visual Basic is event-driven, meaning code remains idle until called upon to respond to some
event (button pressing, menu selection, ...). Visual Basic is governed by an event processor.
Nothing happens until an event is detected. Once an event is detected, the code corresponding
to that event (event procedure) is executed. Program control is then returned to the event
processor.

Event? Event processor Basic Code Basic Code


• Some Features of Visual Basic Basic Code

⇒ Full set of objects - you 'draw' the application

⇒ Lots of icons and pictures for your use ⇒ Response to mouse and keyboard actions

⇒ Clipboard and printer access Event Procedures ⇒ Full array of mathematical, string handling,
and graphics functions

⇒ Can handle fixed and dynamic variable and control arrays

⇒ Sequential and random access file support

⇒ Useful debugger and error-handling facilities

⇒ Powerful database access tools

⇒ ActiveX support

⇒ Package & Deployment Wizard makes distributing your applications simple

Visual Basic 6.0 versus Other Versions of Visual Basic

• The original Visual Basic for DOS and Visual Basic For Windows were introduced in 1991.

• Visual Basic 3.0 (a vast improvement over previous versions) was released in 1993.

• Visual Basic 4.0 released in late 1995 (added 32 bit application support).

• • Visual Basic 5.0 released in late 1996. New environment, supported creation of ActiveX
controls, deleted 16 bit application support.

• And, now Visual Basic 6.0 - some identified new features of Visual Basic 6.0:

⇒ Faster compiler

⇒ New ActiveX data control object

⇒ Allows database integration with wide variety of applications

⇒ New data report designer

⇒ New Package & Deployment Wizard

⇒ Additional internet capabilites 16 Bits versus 32 Bits

• Applications built using the Visual Basic 3.0 and the 16 bit version of Visual Basic 4.0 will run
under Windows 3.1, Windows for Workgroups, Windows NT, or Windows 95
• Applications built using the 32 bit version of Visual Basic 4.0, Visual Basic 5.0 and Visual Basic
6.0 will only run with Windows 95 or Windows NT (Version 3.5.1 or higher). • In this class, we
will use Visual Basic 6.0 under Windows 95, recognizing such applications will not operate in 16
bit environments.

Structure of a Visual Basic Application

Application (Project) is made up of: Control 3

⇒ Forms - Windows that you create for user interface

⇒ Controls - Graphical features drawn on forms to allow user interaction (text boxes, labels,
scroll bars, command buttons, etc.) (Forms and Controls are objects.)

⇒ Properties - Every characteristic of a form or control is specified by a property. Example


properties include names, captions, size, color, position, and contents. Visual Basic applies
default properties. You can change properties at design time or run time.

⇒ Methods - Built-in procedure that can be invoked to impart some action to a particular
object.

⇒ Event Procedures - Code related to some object. This is the code that is executed when a
certain event occurs.

⇒ General Procedures - Code not related to objects. This code must be invoked by the
application.

⇒ Modules - Collection of general procedures, variable declarations, and constant definitions


used by application. Steps in Developing Application

• There are three primary steps involved in building a Visual Basic application:

1. Draw the user interface

2. Assign properties to controls

3. Attach code to controls

Drawing the User Interface and Setting Properties

• Visual Basic operates in three modes.


⇒ Design mode - used to build application

⇒ Run mode - used to run the application

⇒ Break mode - application halted and debugger is available

You might also like