Visual BASIC Intro

Download Report

Transcript Visual BASIC Intro

Visual BASIC
Integrated Development
Environment (IDE)
History of Visual Basic
Visual Basic 2003 (VB8):
April 2003
.Net Generation
Visual Basic 2005 (VB9):
November 2005
Visual Basic .Net (VB7):
February 2002
Pre .Net Generation
Visual Basic 6.0 (VB6):
October 1998
Visual Basic 4.0 (VB4):
October 1996
Visual Basic 2.0 (VB2):
November 1992
Visual Basic 5.0 (VB5):
April 1997
Visual Basic 3.0 (VB3):
June 1993
Visual Basic 1.0 (VB1):
May 1991
VISUAL BASIC
VISUAL
• method of creating a
Graphical User
Interface (GUI)
BASIC
• method of writing
program codes for
functionality
VISUAL BASIC
Developed and
owned by Microsoft
• Created to make
application programs
for Windows OS.
It is an objectoriented and eventdriven programming
language
VB 2005 Express
A free version of Visual
Basic
• The IDE contains easyto-use and easy-to-learn
tools for creating .NET
applications, using the
Visual Basic
programming language.
Suitable for students or
other people learning
the VB language
Parts of VB 2005 Express IDE
Start Page of
VB 2005
Express IDE
Parts of VB 2008 Express IDE
Start Page of
VB 2008
Express IDE
Parts of VB 2005 Express IDE
Main Menu Bar
Toolbar
Solution Explorer
Properties
Window
Design Area
Toolbox
Visual BASIC IDE
Menu Bar
Main Tool Bar
Tool Box
Project
Explorer
Window
Form
Designer
Window
Properties
Window
Code
Window
Form
Layout
Window
Main MenuBar
It consists of all the commands
provided by the IDE under the different
menus based on their functionality
provides access to such functions
as opening files, interacting with an
application, or help
Standard ToolBar
Provides quick access to frequently
used commands
ToolBox
It consists of the
various controls that
can be used to
design the graphical
user interfaces of the
application
Properties
Window
describes the
properties of the form
and its controls
lists all the properties
of the object that's
currently selected and
gives you the
opportunity to modify
them.
Solution Explorer Window
(Project Explorer Window)
contains the project
files
gives an overview of
all the modules that
are contained in the
application.
allows to switch
between different
windows
Form Designer Window
A design space
which contains
objects or controls
used for the
application
It allows GUI
creation by providing
the foundation for
controls
CODE EDITOR
(Code Window)
used to write codes
that determine the
behavior of the forms
and other objects in the
application.
CODE
EDITOR
(Code
IntelliSense
Window
Window)
It allows
easy access to
used to write
codes that
properties
and methods
of
determine
the behavior of
controls.
the forms and other
objects in the application.
IntelliSense Window
It allows easy access
to properties and
methods of controls.
VB EXPRESS IDE
Getting Started with Visual Basic
Steps in Creating Simple
Applications
1.
Create the User Interface (GUI)
2.
Set the Properties of the Objects
3.
Enter the appropriate Source Code
4.
Run the Program
Loading Visual BASIC
Click Start > Programs > Microsoft Visual
Studio 6.0 > Microsoft Visual Basic 6.0
Select A Project Type
select the type of
project you want to
create.
select STANDARD
EXE for your project
type.
Saving a Project
You may click this icon to
instantly create a folder
To save, click File on the
file menu then select
Save Project.
Visual BASIC will ask
for the filename of the
form. Change the folder
where you intend to save
your project files. Then,
type the filename of the
form and click Save.
|