0% found this document useful (0 votes)
7 views

Introduction of VB Final

Uploaded by

sanchotheonly1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Introduction of VB Final

Uploaded by

sanchotheonly1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 26

VISUAL BASIC 6.

0
 Visual Basic is a
third-generation event-
driven programming
language first released
by Microsoft in 1991.
 1.0 to the final
What is
version Visual Basic
6.0. Visual Basic?
The Visual Basic 6 Integrated Development
Environment
When you start a new Visual Basic 6 Standard
EXE project, you will be presented with the
Visual Basic 6 Integrated Development
Environment (IDE). The Visual Basic 6
Integrated Programming Environment is shown
in Figure 1.2. It consists of the toolbox,
the form, the project explorer and the
properties window.
COMPONENTS OF IDE (INTEGRATED DEVELOPMENT
ENVIRONMENT
TITLE
BAR
The title bar is the horizontal bar along
the top of the screen.
COMPONENTS OF IDE (INTEGRATED DEVELOPMENT
ENVIRONMENT)
MENU BAR
The Menu Bar is the gateway to the Visual
Basic’s dropdown menu system.
COMPONENTS OF IDE (INTEGRATED DEVELOPMENT
ENVIRONMENT)
FORM
WINDOW
This window, located
in the center of the
screen, is the
cornerstone of your
application’s user
interface..
COMPONENTS OF IDE (INTEGRATED DEVELOPMENT
ENVIRONMENT)
TOOL BAR
A row of icons located horizontally near the
top side of the screen.
COMPONENTS OF IDE (INTEGRATED DEVELOPMENT
ENVIRONMENT)
TOOLBOX
The vertical icon
group located on
the left side of
screen..
COMPONENTS OF IDE (INTEGRATED DEVELOPMENT
ENVIRONMENT)
PROJECT
WINDOW
This window list the
files, forms, and modules
that comprise the current
application.
COMPONENTS OF IDE (INTEGRATED DEVELOPMENT
ENVIRONMENT)
PROPERTIES
WINDOW
This window shows
attributes associated
with a selected form or
control.
COMPONENTS OF IDE (INTEGRATED DEVELOPMENT
ENVIRONMENT)
DEBUG WINDOW
This window appears every
time an application is
executed on run-time.
COMPONENTS OF IDE (INTEGRATED DEVELOPMENT
ENVIRONMENT)
COLOR PALETTE
This window provide the
user the ability to
change the color property
of the form and object in
the application..
(THE STANDARD VISUAL
BASIC CONTROLS)
Toolbox and Form
 The user can place the
tool on form and then
work with the tool. To
place the tool on form:

 Click on tool >Draw tool


to Form> the tool appears
on Form.
Or: double click on it
WORKING WITH
TOOLS
• The user can work with tool in the design stage.----
Propertyname
• To add tool: double click on tool. Tool appears on form or
drags it to designpart of page and draw it in the desired
size.
• To delete: click on element in page> press delete key of the
key board or right click on object for mouse list> choose
delete.
• To display tool properties window: click on element>
properties window Appear.
• To display code form: double click on tool code form for
that element.
THE STANDARD VISUAL BASIC CONTROLS

LABEL
 It is used to display fixed text on
form

Note: The available color numbers that used with


QBcolor is the integers 0 to 15 only.
THE STANDARD VISUAL BASIC CONTROLS
Example: Design a form contains label “Visual Basic” in
size 14.
THE STANDARD VISUAL BASIC CONTROLS
TextBox

Can be used to display text but


also enables users to enter or
edit new pr existing text.
THE STANDARD VISUAL BASIC CONTROLS
TextBox Properties
THE STANDARD VISUAL BASIC CONTROLS
Try Example: Design a form to enter username and
password such that the title of the form is VB.
this!
THE STANDARD VISUAL BASIC CONTROLS
COMMAND BUTTON
 It acts as a switch. To deal with tool property>
click on command button> property window appear>
change setting of any desired property. Usually
change set its caption property to a suitable
string.

 To make the button functional, the user should add


some code. To do this: click on command tool> code
form appears with click event procedure. Write
code in this event or other events like press key
event
THE STANDARD VISUAL BASIC CONTROLS
THE STANDARD VISUAL BASIC CONTROLS
Example: Design a form with label, such that when click on the
command button "name "your name appears on label(at running stage).
Try this!
Design a form to appear
your name and section
in textbox, when click
on command button
"name“ and “section“
respectively so that
they can clear these
information when click
on command "clear" and
stop project when click
on command "exit".

You might also like