Вы находитесь на странице: 1из 18

Meaning

of
Visual Basic
1

VB as Programming Language
Visual Basic is a Programming tool that allows user to develop Windows or
GUI ( Graphical User Interface ) applications. It means that rather
than writing numerous line for code to describe the appearance and
location for interface elements like C , C + + or Basic. User can simply
drag and drop pre-built objects into the form window on computer screen.
VB is a much enhanced version of BASIC programming language
( BASIC is Predecessor of VB ). The main difference is that the VB can
create windows programs by just Drag & Drop where as BASIC could only
create DOS programs or work only in CUI (Command User Interface ).

Features of Visual Basic ( VB )


VB introduces the concept of Event Driven programming Model.
It has built in Database Handling Features of VB.
It incorporated the concepts of objects.
It has useful Error Handling Features.
It has Front End Application Developer.
It also known as RAD ( Rapid Application Development )

Event & Event Procedure

An
event
is
an
action
recognized by an object, such
as clicking a mouse or pressing
a key. User can write code to
respond to that event. Each
object has different events
that it recognizes.

An event procedure is a section


of code that is executed when an
event (like clicking a command
button) takes place. Event
procedures can be added to your
project in the code editor
window.

Program Development Process


It is a process in which an ordered sequence of steps is defined to
develop an application. It includes : How the Program should Work
Plan about User Interface
Implement it
Test it

Starting
Visual Basic
6

Interface of Visual Basic


When user start the window it display a screen having certain option.
With the help of this screen user can select the type of project user
want to make.
Visual Basic environment is platform provided by VB to develop and
execute a project . This environment consist of different platforms or
control tools and various other options.

Interface of Visual Basic

The Visual Basic startup dialog box


8

Visual Basic I D E
When user choose any application platform, like any other window
application, VB consists of multiple window, which appear at start up. The
windows that are display when user start VB are collectively Known as
Visual basic Integrated Development Environment ( IDE ).

Visual Basic I D E
Title bar

Menu bar

Toolbar

Project
Window

Toolbox

Form
Window

Properties
Window

Form
Layout
Window
Visual Basic Integrated Development Environment
10

Properties Window
The Properties window let user to
change the characteristics, or
property settings, of the form itself
and of visual interface elements on
the form. The Properties window
consists of two columns: the first is
the name of the property, which user
cannot change; the second column,
which is the property setting that
user can change. Any Change in the
property of the object will affect
the object on the form.

11

Tool Box
The toolbox consists of
the various objects that
user will use to design the
application. These objects,
called controls, are objects
that user see in all
standard Win applications,
such
as
textboxes,
command buttons, option
(radio)
buttons,
checkboxes, etc.

12

Form Window
The Form window is the
central area where user
can draw application. The
forms are windows which
holds control like Button ,
Checkbox etc which make
user application. The large
area of form is called
client area for working
with different controls.

13

Source Code Window


The Source Code window is
where user type the code
which VB execute. It has
two parts Control Box ,
Event Box . The Heading of
window
indicate
which
event
the
code
is
associated . It is a window
where user write most of
the code .

14

Source Code Window

It shows the control Box


which
contains
two
controls ( Command 1 &
Form ).

15

Source Code Window

It shows the Event Box


that Selected Control can
perform these event.

16

Opening , Saving & Running


Opening a Project : - To open a VB project , invoke VB6 shortcut on
the Desktop or going through the pull-up menu select VB program .
Start Program Microsoft Visual Basic 6.0 .

Saving a Project : - After creating a Project , user need to save it . For


this click File menu and select save project. Then system asks : 1.

Provide a name for Form File ( . frm )

2. After that Provide a name for Project file ( .vbp )

17

Opening , Saving & Running


Running a Project : - After saving the project , the next step is to
execute the program. Following are different ways to execute a
project.
1.

Press F5 Key

2. On Menu Bar Click Run - Start


3. On VB Toolbar , Click Run Icon.

18

Вам также может понравиться