SlideShare una empresa de Scribd logo
1 de 15
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

Más contenido relacionado

La actualidad más candente

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.netajmal_fuuast
 
Visual Programming
Visual ProgrammingVisual Programming
Visual ProgrammingBagzzz
 
visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introductionbloodyedge03
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0sanket1996
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginnerSalim M
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE IntroductionAhllen 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 ProgrammingOsama Yaseen
 
Chapter 03 - Program Coding and Design
Chapter 03 - Program Coding and DesignChapter 03 - Program Coding and Design
Chapter 03 - Program Coding and Designpatf719
 
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 FundamentalsSanay Kumar
 
Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6Spy Seat
 

La actualidad más candente (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
 

Destacado

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 2001Speed 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 BasicMuralidharan Radhakrishnan
 
Introduction to automated visual testing
Introduction to automated visual testingIntroduction to automated visual testing
Introduction to automated visual testingadamcarmi
 
Transforming Power Point Show with VBA
Transforming Power Point Show with VBATransforming Power Point Show with VBA
Transforming Power Point Show with VBADCPS
 
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 BookMuralidharan Radhakrishnan
 
Memory Organization
Memory OrganizationMemory Organization
Memory OrganizationAcad
 
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 Operationsfrancopw
 
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 6Ella Marie Wico
 

Destacado (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 a Visusual basic

Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0DivyaR219113
 
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
 
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 ProjectDashamir Hoxha
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdfLimEchYrr
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptxLimEchYrr
 
Programming basics
Programming basicsProgramming basics
Programming basicsSenri DLN
 
Web-Based Lighting Automation System
Web-Based Lighting Automation SystemWeb-Based Lighting Automation System
Web-Based Lighting Automation SystemApoorva 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 1Dan D'Urso
 
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 1guest38bf
 
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 ProjectsAVEVA
 
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
 
Online shopping Report
Online shopping ReportOnline shopping Report
Online shopping ReportPragnya Dash
 
3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdf3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdfEMERSON EDUARDO RODRIGUES
 

Similar a 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
 
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
 
3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdf3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdf
 

Último

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 

Último (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.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