SlideShare a Scribd company logo
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

What's hot

Best practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netBest practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.net
ajmal_fuuast
 
Visual basic
Visual basicVisual basic
Visual basic
umesh patil
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
Bagzzz
 
visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introductionbloodyedge03
 
Visual basic
Visual basicVisual basic
Visual basic
sanjay joshi
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0sanket1996
 
Vbasic
VbasicVbasic
Chapter03 Ppt
Chapter03 PptChapter03 Ppt
Chapter03 Ppt
Osama Yaseen
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
Salim M
 
Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
Ranjuma Shubhangi
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
Ahllen Javier
 
Introduction to visual basic
Introduction to visual basicIntroduction to visual basic
Introduction to visual basicManav Khandelwal
 
visual basic programming
visual basic programmingvisual basic programming
visual basic programming
sowndaryadharmaraj
 
Visual Basic Programming
Visual Basic ProgrammingVisual Basic Programming
Visual Basic Programming
Osama Yaseen
 
Chapter 03 - Program Coding and Design
Chapter 03 - Program Coding and DesignChapter 03 - Program Coding and Design
Chapter 03 - Program Coding and Design
patf719
 
Visual programming
Visual programmingVisual programming
Visual programming
Dr. C.V. Suresh Babu
 
Introduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 FundamentalsIntroduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 Fundamentals
Sanay Kumar
 
Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6
Spy Seat
 

What's hot (20)

Best practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netBest practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.net
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introduction
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Vbasic
VbasicVbasic
Vbasic
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.
 
Chapter03 Ppt
Chapter03 PptChapter03 Ppt
Chapter03 Ppt
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
 
Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Introduction to visual basic
Introduction to visual basicIntroduction to visual basic
Introduction to visual basic
 
visual basic programming
visual basic programmingvisual basic programming
visual basic programming
 
Visual Basic Programming
Visual Basic ProgrammingVisual Basic Programming
Visual Basic Programming
 
Chapter 03 - Program Coding and Design
Chapter 03 - Program Coding and DesignChapter 03 - Program Coding and Design
Chapter 03 - Program Coding and Design
 
Visual programming
Visual programmingVisual programming
Visual programming
 
Introduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 FundamentalsIntroduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 Fundamentals
 
Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6
 
Microsoft visual basic 6
Microsoft visual basic 6Microsoft visual basic 6
Microsoft visual basic 6
 

Viewers also liked

Vb 6.0 controls
Vb 6.0 controlsVb 6.0 controls
Vb 6.0 controls
'Bharat Kumar
 
Basic controls of Visual Basic 6.0
Basic controls of Visual Basic 6.0Basic controls of Visual Basic 6.0
Basic controls of Visual Basic 6.0Salim M
 
Visual basic 6 black book 2001
Visual basic 6 black book 2001Visual basic 6 black book 2001
Visual basic 6 black book 2001
Speed Cyber Cafe
 
Introduction to Project Development using Visual Basic
Introduction to Project Development using Visual BasicIntroduction to Project Development using Visual Basic
Introduction to Project Development using Visual Basic
Muralidharan Radhakrishnan
 
Introduction to automated visual testing
Introduction to automated visual testingIntroduction to automated visual testing
Introduction to automated visual testing
adamcarmi
 
Transforming Power Point Show with VBA
Transforming Power Point Show with VBATransforming Power Point Show with VBA
Transforming Power Point Show with VBA
DCPS
 
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 BookADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
Muralidharan Radhakrishnan
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
Acad
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051Muthu Manickam
 
Chapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic OperationsChapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic Operations
francopw
 
Data base connectivity and flex grid in vb
Data base connectivity and flex grid in vbData base connectivity and flex grid in vb
Data base connectivity and flex grid in vbAmandeep Kaur
 
Creating a quiz using visual basic 6
Creating a quiz using visual basic 6Creating a quiz using visual basic 6
Creating a quiz using visual basic 6
Ella Marie Wico
 
History of c++
History of c++ History of c++
History of c++
Ihsan Wassan
 

Viewers also liked (20)

Vb 6.0 controls
Vb 6.0 controlsVb 6.0 controls
Vb 6.0 controls
 
Vb file
Vb fileVb file
Vb file
 
The Best Source Code VB
The Best Source Code VBThe Best Source Code VB
The Best Source Code VB
 
Basic controls of Visual Basic 6.0
Basic controls of Visual Basic 6.0Basic controls of Visual Basic 6.0
Basic controls of Visual Basic 6.0
 
Visual basic 6 black book 2001
Visual basic 6 black book 2001Visual basic 6 black book 2001
Visual basic 6 black book 2001
 
Introduction to Project Development using Visual Basic
Introduction to Project Development using Visual BasicIntroduction to Project Development using Visual Basic
Introduction to Project Development using Visual Basic
 
Introduction to automated visual testing
Introduction to automated visual testingIntroduction to automated visual testing
Introduction to automated visual testing
 
Vb 6ch123
Vb 6ch123Vb 6ch123
Vb 6ch123
 
Richtextbox
RichtextboxRichtextbox
Richtextbox
 
Transforming Power Point Show with VBA
Transforming Power Point Show with VBATransforming Power Point Show with VBA
Transforming Power Point Show with VBA
 
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 BookADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
Turbo c++
Turbo c++Turbo c++
Turbo c++
 
Chapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic OperationsChapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic Operations
 
Data base connectivity and flex grid in vb
Data base connectivity and flex grid in vbData base connectivity and flex grid in vb
Data base connectivity and flex grid in vb
 
Apclass (2)
Apclass (2)Apclass (2)
Apclass (2)
 
Creating a quiz using visual basic 6
Creating a quiz using visual basic 6Creating a quiz using visual basic 6
Creating a quiz using visual basic 6
 
History of c++
History of c++ History of c++
History of c++
 

Similar to Visusual basic

Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
DivyaR219113
 
Neha
NehaNeha
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
Kamal Acharya
 
Vb lecture
Vb lectureVb lecture
Vb lecture
alldesign
 
Shine a Light with Prism (the Composite Application Guidance for WPF and Silv...
Shine a Light with Prism (the Composite Application Guidance for WPF and Silv...Shine a Light with Prism (the Composite Application Guidance for WPF and Silv...
Shine a Light with Prism (the Composite Application Guidance for WPF and Silv...
Dave Bost
 
VISUAL PROGRAMMING
VISUAL PROGRAMMINGVISUAL PROGRAMMING
VISUAL PROGRAMMING
SarithaDhanapal
 
B-Translator as a Software Engineering Project
B-Translator as a Software Engineering ProjectB-Translator as a Software Engineering Project
B-Translator as a Software Engineering Project
Dashamir Hoxha
 
vb.pptx
vb.pptxvb.pptx
vb.pptx
CherryLim21
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
LimEchYrr
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
LimEchYrr
 
Programming basics
Programming basicsProgramming basics
Programming basics
Senri DLN
 
Web-Based Lighting Automation System
Web-Based Lighting Automation SystemWeb-Based Lighting Automation System
Web-Based Lighting Automation System
Apoorva Chandra
 
Vb6 ch.6-3 cci
Vb6 ch.6-3 cciVb6 ch.6-3 cci
Vb6 ch.6-3 cciFahim Khan
 
AVB201.1 Microsoft Access VBA Module 1
AVB201.1 Microsoft Access VBA Module 1AVB201.1 Microsoft Access VBA Module 1
AVB201.1 Microsoft Access VBA Module 1
Dan D'Urso
 
Visual basic
Visual basic Visual basic
Visual basic
Shabista Imam
 
AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1
guest38bf
 
Debugging VBScript in InduSoft Web Studio Projects
Debugging VBScript in InduSoft Web Studio ProjectsDebugging VBScript in InduSoft Web Studio Projects
Debugging VBScript in InduSoft Web Studio Projects
AVEVA
 
Next generation of frontend architectures - Luca Mezzalira - Codemotion Milan...
Next generation of frontend architectures - Luca Mezzalira - Codemotion Milan...Next generation of frontend architectures - Luca Mezzalira - Codemotion Milan...
Next generation of frontend architectures - Luca Mezzalira - Codemotion Milan...
Codemotion
 
Using general sub procedures
Using general sub proceduresUsing general sub procedures
Using general sub procedures
Danica Denice Epino
 
Online shopping Report
Online shopping ReportOnline shopping Report
Online shopping Report
Pragnya Dash
 

Similar to Visusual basic (20)

Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
Neha
NehaNeha
Neha
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
 
Vb lecture
Vb lectureVb lecture
Vb lecture
 
Shine a Light with Prism (the Composite Application Guidance for WPF and Silv...
Shine a Light with Prism (the Composite Application Guidance for WPF and Silv...Shine a Light with Prism (the Composite Application Guidance for WPF and Silv...
Shine a Light with Prism (the Composite Application Guidance for WPF and Silv...
 
VISUAL PROGRAMMING
VISUAL PROGRAMMINGVISUAL PROGRAMMING
VISUAL PROGRAMMING
 
B-Translator as a Software Engineering Project
B-Translator as a Software Engineering ProjectB-Translator as a Software Engineering Project
B-Translator as a Software Engineering Project
 
vb.pptx
vb.pptxvb.pptx
vb.pptx
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Web-Based Lighting Automation System
Web-Based Lighting Automation SystemWeb-Based Lighting Automation System
Web-Based Lighting Automation System
 
Vb6 ch.6-3 cci
Vb6 ch.6-3 cciVb6 ch.6-3 cci
Vb6 ch.6-3 cci
 
AVB201.1 Microsoft Access VBA Module 1
AVB201.1 Microsoft Access VBA Module 1AVB201.1 Microsoft Access VBA Module 1
AVB201.1 Microsoft Access VBA Module 1
 
Visual basic
Visual basic Visual basic
Visual basic
 
AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1
 
Debugging VBScript in InduSoft Web Studio Projects
Debugging VBScript in InduSoft Web Studio ProjectsDebugging VBScript in InduSoft Web Studio Projects
Debugging VBScript in InduSoft Web Studio Projects
 
Next generation of frontend architectures - Luca Mezzalira - Codemotion Milan...
Next generation of frontend architectures - Luca Mezzalira - Codemotion Milan...Next generation of frontend architectures - Luca Mezzalira - Codemotion Milan...
Next generation of frontend architectures - Luca Mezzalira - Codemotion Milan...
 
Using general sub procedures
Using general sub proceduresUsing general sub procedures
Using general sub procedures
 
Online shopping Report
Online shopping ReportOnline shopping Report
Online shopping Report
 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 

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