2/21/2016
Contend
1.Introduction
2.Definition
3.Features
4.Variables Declaration
2/21/2016
Introduction to Visual Basic
Visual Basic is a programming language
and development environment created
by Microsoft.
Visual Basic provides a graphical user
interface GUI that allows the developer
drag and drop objects into the program
as well as manually write program code.
Visual Basic, also referred to as "VB," is
designed to make software development
easy and efficient
2/21/2016
Visual Basic 6.0
—1. Visual Basic is a programming
language and integrated
development environment.
—2. It derives from the much older
BASIC programming language, and
so is considered useful and easy
programming language for the
beginner to learn.
—3. Visual Basic 6.0 was the final
edition of Visual Basic.
2/21/2016
VISUAL BASIC: - GUI (Graphical User Interface)
•Easy to use / Interact
•Easy to understand and process
•Nearly every action can be implemented with click of the
mouse cursor.
Visual Basic is referred as event driven programming
language because each and every execution of the instruction
is executed on the occurrence of any event. These events are
always related with controls and components of the Visual
Basic package. The event can be related to button, text boxes
etc. where it can be a click event of the mouse cursor, change
event of the text box and so many which relates the entire
package to a GUI package with all the advantages of GUI
based applications.
2/21/2016
Feature Of visual basic 6.0
1. Learning Consists of all necessary tools required to
build main stream Windows Applications
2. Professional Includes advanced features such as tools
to develop ActiveX and Internet controls.
3. Enterprise In addition to all Professional features, it
also includes tools such as Visual
GUI Interface
Modularization
Object Oriented
Debugging
Macros IDE
Data access feature
2/21/2016
Guo Interface: - VB is a Graphical User
Interface language. This means that a VB
program will always show something on the
screen that the user can interact with to get a
job done.
Modularization: - It is considered good
programming practice to modularize your
programs. Small modules where it is clearly
indicated what comes into the module and
what goes out makes a program easy to
understand.
Object Oriented: - Object Oriented
Programming is a concept where the
programmer thinks of the program in
"objects" that interact with each other. Visual
Basic forces this good programming practice.
2/21/2016
The Major advantages of GUI based
applications are: -
•User Friendly: - It is very easy to use by the user who is not highly
computer literate.
•Easy to Understand: - The applications developed from Visual Basic
package can redirect the information to the users so that their
interaction with the system can be made very easy.
•Processing is Simple: - The user can interact with the application by
just using the mouse cursor and performing the click events which
allows to execute the instructions internally.
•Easy to Developer: - The development of any application in the Visual
Basic environment is very simple because there are inbuilt controls and
components which are ready to use in drag and drop mode. The
interfaces can be easily designed and instructions can be placed for
different processing under different actions.
The only major disadvantage in respect to the restriction on the
programmer or developer regarding the limitation in number of controls
attributes for the controls and events for the control. The developer is
2/21/2016
Variable Declaration: - In Visual Basic
environment, the variables are declared for
accepting the values from the controls in the
application. There are three categories in which
declaration of variable is performed. They are
mention below: -
Syntax: -
Dim <variable/object> as <data type/class>
Example: - Dim a as integer
Dim a, b, c as integer
•Local Variable: - Whenever any variable is
declared within an event or method of an interface
is referred as local variable. They are not
accessible outside the event or method.
2/21/2016
•Semi-Global: - This declaration of variable acts partially
like semi-global and as well as global. This declaration is
performed under general declaration of the code window
and are supposed to be accessible in all the events or
methods define for the interface. If there is only one
interface then it acts like global variable but when there is
more than one form in the application, it acts like semi-
global variable.
•Global Variable: - The concept of global variable in the
Visual Basic application is related with accessing the
variable in all the forms or interfaces in the application. The
global variables or methods are declared in a “module”
which can be placed in the application from the project
menu. The important aspect in declaring global variable is
in the use of “public” keyword. The variables and methods
in modules are defined as public.
2/21/2016
Option Explicit: - The variable declaration in
Visual Basic environment can be forced by the
compiler and as well as can be ignored by the
compiler. When it is necessary to declare the variable
and the compiler also validates the declaration of
variable then option explicit is placed as the first line
of code in the code window. When the declaration is
not mandatory then option explicit is removed from the
code window. It’s a standard practice to declare all
types of variables in the application. So that accurate
values can be stored in the respective variables.
2/21/2016
Code Window
• Private Sub Command1_Click ( )
....................................................
....................................................
End Sub
This is the most generic set of code visible in the code
window which allows the user to identify the type of action to
be performed in the application. The very first word “Private”
denotes that the scope of the action is limited to the interface
or form where it belongs. It can't be accessed outside the
form.
The second word “Sub” represents subroutine which
instructs the compiler regarding the set of instructions
provided by the user for execution and it doesn't return any
value.
The next word is combination of control and action for the
user interface. It describes the specific control with events so
that the execution of instructions can be performed when that
specific action occurs.
2/21/2016
The concluding combination i.e. “End Sub”
represents the termination of the particular subroutine. It is
essential because there is no curly brace to represent the
termination of the event or subroutine.
•Private/Public Function <function name> (...........)
<return type>
.............................................................................................
.............................................................................................
End Function
The above block represents the declaration of a function in
the Visual Basic environment. The first word is similar with
respect to subroutine but when the scope of the function is to
be declared as global accessibility then the access specifier
public is used otherwise for a single form or user interface
private access specifier is used.
2/21/2016
The next word function is also a keyword in the
Visual Basic environment which suggests the
compiler that a set of instructions will be executed
and at the same time when the execution will
complete it returns the value to the calling function,
subroutine or event. It also accepts argument
which can be supplied from user interface control
or variables. As the function returns a value it is
necessary to declare the return type of the function.
The return type is mention after the parameter list.
It is obvious that the function should be terminated
and for that “End Function” is used.
2/21/2016
www.miitpatna.com
For full Notes and project contact me
@7631205203
2/21/2016

More Related Content

PDF
Vb tutorial
PPT
Meaning Of VB
PPT
Visual basic ppt for tutorials computer
DOCX
Visual basic
PPS
Vb6.0 Introduction
PPT
Vb basics
PPT
Vb unit t 1.1
PPT
Introduction to visual basic programming
Vb tutorial
Meaning Of VB
Visual basic ppt for tutorials computer
Visual basic
Vb6.0 Introduction
Vb basics
Vb unit t 1.1
Introduction to visual basic programming

What's hot (20)

PPT
Best practices for upgrading vb 6.0 projects to vb.net
PPT
Visual basic
PPTX
Visual Programming
PPT
visual basic v6 introduction
PPT
Visual basic
PDF
Visual basic 6.0
PDF
PPT
Vb introduction.
PPT
Chapter03 Ppt
PPT
visual basic for the beginner
PPTX
Visual Basic Controls ppt
PDF
Visual Basic IDE Introduction
PPTX
Introduction to visual basic
PPTX
visual basic programming
PPT
Visual Basic Programming
PPTX
Chapter 03 - Program Coding and Design
PPT
Visual programming
PPTX
Introduction to Visual Basic 6.0 Fundamentals
PPTX
Visual basic 6
PPT
Microsoft visual basic 6
Best practices for upgrading vb 6.0 projects to vb.net
Visual basic
Visual Programming
visual basic v6 introduction
Visual basic
Visual basic 6.0
Vb introduction.
Chapter03 Ppt
visual basic for the beginner
Visual Basic Controls ppt
Visual Basic IDE Introduction
Introduction to visual basic
visual basic programming
Visual Basic Programming
Chapter 03 - Program Coding and Design
Visual programming
Introduction to Visual Basic 6.0 Fundamentals
Visual basic 6
Microsoft visual basic 6
Ad

Viewers also liked (20)

PPTX
Vb 6.0 controls
DOC
PDF
The Best Source Code VB
PPTX
Basic controls of Visual Basic 6.0
PDF
Visual basic 6 black book 2001
PPTX
Introduction to Project Development using Visual Basic
PPTX
Introduction to automated visual testing
PDF
Vb 6ch123
PPTX
Richtextbox
PPS
Transforming Power Point Show with VBA
PPT
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
PPT
Memory Organization
PDF
Visual basic 6
PPT
Memory organization of 8051
PPTX
Turbo c++
PPTX
Chapter 4 — Variables and Arithmetic Operations
PPTX
Data base connectivity and flex grid in vb
PPT
Apclass (2)
PPT
Creating a quiz using visual basic 6
PPT
History of c++
Vb 6.0 controls
The Best Source Code VB
Basic controls of Visual Basic 6.0
Visual basic 6 black book 2001
Introduction to Project Development using Visual Basic
Introduction to automated visual testing
Vb 6ch123
Richtextbox
Transforming Power Point Show with VBA
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
Memory Organization
Visual basic 6
Memory organization of 8051
Turbo c++
Chapter 4 — Variables and Arithmetic Operations
Data base connectivity and flex grid in vb
Apclass (2)
Creating a quiz using visual basic 6
History of c++
Ad

Similar to Visusual basic (20)

PPT
Visual basics
PPTX
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
DOCX
Vb lecture
PPTX
Vb6.0 intro
PPT
Visual basic 6.0
PPTX
LESSON1-INTRODUCTION-TO-VISUALBASIC-1.pptx
DOCX
Unit 1 vb study_materials
PDF
Future Scope in Application Developement of Visual Basic
PPT
Lec02
PDF
Introduction to Visual Basic 6.0
PPTX
Presentation on visual basic 6 (vb6)
PPTX
introduction to visual basic PPT.pptx
PPTX
Introduction to visual basic 6 (1)
PPTX
1751884730-Visual Basic -Unitj CS B.pptx
PDF
VB PPT by ADI part-1.pdf
PPTX
Vb ch 3-object-oriented_fundamentals_in_vb.net
PDF
Ppt on visual basics
PPTX
01 Database Management (re-uploaded)
PPTX
vb.pptx
Visual basics
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
Vb lecture
Vb6.0 intro
Visual basic 6.0
LESSON1-INTRODUCTION-TO-VISUALBASIC-1.pptx
Unit 1 vb study_materials
Future Scope in Application Developement of Visual Basic
Lec02
Introduction to Visual Basic 6.0
Presentation on visual basic 6 (vb6)
introduction to visual basic PPT.pptx
Introduction to visual basic 6 (1)
1751884730-Visual Basic -Unitj CS B.pptx
VB PPT by ADI part-1.pdf
Vb ch 3-object-oriented_fundamentals_in_vb.net
Ppt on visual basics
01 Database Management (re-uploaded)
vb.pptx

Recently uploaded (20)

PPTX
Virtual and Augmented Reality in Current Scenario
PDF
Hazard Identification & Risk Assessment .pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
advance database management system book.pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
International_Financial_Reporting_Standa.pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
IGGE1 Understanding the Self1234567891011
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
HVAC Specification 2024 according to central public works department
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Virtual and Augmented Reality in Current Scenario
Hazard Identification & Risk Assessment .pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
advance database management system book.pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
LDMMIA Reiki Yoga Finals Review Spring Summer
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
International_Financial_Reporting_Standa.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
History, Philosophy and sociology of education (1).pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Paper A Mock Exam 9_ Attempt review.pdf.
Uderstanding digital marketing and marketing stratergie for engaging the digi...
IGGE1 Understanding the Self1234567891011
What if we spent less time fighting change, and more time building what’s rig...
HVAC Specification 2024 according to central public works department
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
A powerpoint presentation on the Revised K-10 Science Shaping Paper

Visusual basic

  • 3. Introduction to Visual Basic Visual Basic is a programming language and development environment created by Microsoft. Visual Basic provides a graphical user interface GUI that allows the developer drag and drop objects into the program as well as manually write program code. Visual Basic, also referred to as "VB," is designed to make software development easy and efficient 2/21/2016
  • 4. Visual Basic 6.0 —1. Visual Basic is a programming language and integrated development environment. —2. It derives from the much older BASIC programming language, and so is considered useful and easy programming language for the beginner to learn. —3. Visual Basic 6.0 was the final edition of Visual Basic. 2/21/2016
  • 5. VISUAL BASIC: - GUI (Graphical User Interface) •Easy to use / Interact •Easy to understand and process •Nearly every action can be implemented with click of the mouse cursor. Visual Basic is referred as event driven programming language because each and every execution of the instruction is executed on the occurrence of any event. These events are always related with controls and components of the Visual Basic package. The event can be related to button, text boxes etc. where it can be a click event of the mouse cursor, change event of the text box and so many which relates the entire package to a GUI package with all the advantages of GUI based applications. 2/21/2016
  • 6. Feature Of visual basic 6.0 1. Learning Consists of all necessary tools required to build main stream Windows Applications 2. Professional Includes advanced features such as tools to develop ActiveX and Internet controls. 3. Enterprise In addition to all Professional features, it also includes tools such as Visual GUI Interface Modularization Object Oriented Debugging Macros IDE Data access feature 2/21/2016
  • 7. Guo Interface: - VB is a Graphical User Interface language. This means that a VB program will always show something on the screen that the user can interact with to get a job done. Modularization: - It is considered good programming practice to modularize your programs. Small modules where it is clearly indicated what comes into the module and what goes out makes a program easy to understand. Object Oriented: - Object Oriented Programming is a concept where the programmer thinks of the program in "objects" that interact with each other. Visual Basic forces this good programming practice. 2/21/2016
  • 8. The Major advantages of GUI based applications are: - •User Friendly: - It is very easy to use by the user who is not highly computer literate. •Easy to Understand: - The applications developed from Visual Basic package can redirect the information to the users so that their interaction with the system can be made very easy. •Processing is Simple: - The user can interact with the application by just using the mouse cursor and performing the click events which allows to execute the instructions internally. •Easy to Developer: - The development of any application in the Visual Basic environment is very simple because there are inbuilt controls and components which are ready to use in drag and drop mode. The interfaces can be easily designed and instructions can be placed for different processing under different actions. The only major disadvantage in respect to the restriction on the programmer or developer regarding the limitation in number of controls attributes for the controls and events for the control. The developer is 2/21/2016
  • 9. Variable Declaration: - In Visual Basic environment, the variables are declared for accepting the values from the controls in the application. There are three categories in which declaration of variable is performed. They are mention below: - Syntax: - Dim <variable/object> as <data type/class> Example: - Dim a as integer Dim a, b, c as integer •Local Variable: - Whenever any variable is declared within an event or method of an interface is referred as local variable. They are not accessible outside the event or method. 2/21/2016
  • 10. •Semi-Global: - This declaration of variable acts partially like semi-global and as well as global. This declaration is performed under general declaration of the code window and are supposed to be accessible in all the events or methods define for the interface. If there is only one interface then it acts like global variable but when there is more than one form in the application, it acts like semi- global variable. •Global Variable: - The concept of global variable in the Visual Basic application is related with accessing the variable in all the forms or interfaces in the application. The global variables or methods are declared in a “module” which can be placed in the application from the project menu. The important aspect in declaring global variable is in the use of “public” keyword. The variables and methods in modules are defined as public. 2/21/2016
  • 11. Option Explicit: - The variable declaration in Visual Basic environment can be forced by the compiler and as well as can be ignored by the compiler. When it is necessary to declare the variable and the compiler also validates the declaration of variable then option explicit is placed as the first line of code in the code window. When the declaration is not mandatory then option explicit is removed from the code window. It’s a standard practice to declare all types of variables in the application. So that accurate values can be stored in the respective variables. 2/21/2016
  • 12. Code Window • Private Sub Command1_Click ( ) .................................................... .................................................... End Sub This is the most generic set of code visible in the code window which allows the user to identify the type of action to be performed in the application. The very first word “Private” denotes that the scope of the action is limited to the interface or form where it belongs. It can't be accessed outside the form. The second word “Sub” represents subroutine which instructs the compiler regarding the set of instructions provided by the user for execution and it doesn't return any value. The next word is combination of control and action for the user interface. It describes the specific control with events so that the execution of instructions can be performed when that specific action occurs. 2/21/2016
  • 13. The concluding combination i.e. “End Sub” represents the termination of the particular subroutine. It is essential because there is no curly brace to represent the termination of the event or subroutine. •Private/Public Function <function name> (...........) <return type> ............................................................................................. ............................................................................................. End Function The above block represents the declaration of a function in the Visual Basic environment. The first word is similar with respect to subroutine but when the scope of the function is to be declared as global accessibility then the access specifier public is used otherwise for a single form or user interface private access specifier is used. 2/21/2016
  • 14. The next word function is also a keyword in the Visual Basic environment which suggests the compiler that a set of instructions will be executed and at the same time when the execution will complete it returns the value to the calling function, subroutine or event. It also accepts argument which can be supplied from user interface control or variables. As the function returns a value it is necessary to declare the return type of the function. The return type is mention after the parameter list. It is obvious that the function should be terminated and for that “End Function” is used. 2/21/2016
  • 15. www.miitpatna.com For full Notes and project contact me @7631205203 2/21/2016