SlideShare a Scribd company logo
1 of 13
Download to read offline
Visual Basic (Introduction)
Shabista imam
Introduction
Visual Basic is a tool that allows you to develop windows (graphics User Interface-
GUI) application . The application have a familiar appearance to the user.
Visual Basic is event-driven ,meaning code remain idle until called upon to respond
to some event(button passing , menu selection,..).
Visual Basic is governed by an event processor .Nothing happened until an event is
detected . Once an event is detected ,the code corresponding to that event (event
procedure) is executed . Program Control is then returned to the event processor.
Event
Basic
code
Basic
code
Basic
code
Some features of Visual Basic
• Full sets of object you draw the application.
• Lots of Icons and picture for use.
• Response to mouse and keyboard action.
• Clipboard and printer access.
• Full array of mathematical ,string handling and graphics function.
• It can handle fixed and dynamic variable and control arrays.
• Sequential and random access file support.
• Useful debugger and error handling facilities.
• Powerful database access tools.
• Active X support.
• Package & development wizard makes distributing your application simple.
Structure of Visual Basic Application
Project (.VBP , .MAK)
Application is made of the followings terms :-
• Forms :- Windows that you create for user interface.
• Controls:- Graphical features drawn on forms to allows user interaction
(textboxes, labels, scroll bar , command buttons etc.),(Forms and Controls are
Object).
• Properties :- Every characteristics of form or control is specified by a property.
Ex- names , Caption size , color , position content , visual basic applies
default properties . You can change it at design time or run time.
• Methods :- Built in procedure that can be invoked to import some action to a
particular object.
• Event Procedure :- Code related to some object .This is the code that is executed
when a certain event occurs.
• General Procedure :- Code not related to object. This code must be invoked by the
application.
• Modules :- Collection of general procedures variable declaration and constant
definition used by application.
Steps in Developing Applications
There are 3 primary steps involved in building Visual Basic Application.
1. Draw the user interface
2. Assign properties to controls
3. Attach code to controls
1.Drawing User Interface and setting Properties:
Visual Basic operates in 3 modes:-
• Design Mode :- Used to build application.
• Run Mode :- Used to run application.
• Break Mode :- application is halted and debugger is available.
Design Mode
Six windows appears when you start Visual Basic.
1. Main Window :- It consist of title bar , menu bar and toolbar. The title bar
indicates the project name, the current VB operating modes, and the current form.
The menu bar has dropdown menus from which you control the operation of VB
environment .The toolbar has buttons that provide shortcuts to some of the menus
options . The main window also shows the location of current from relative to the
upper left corner of the screen (measured in twips) and the width and length of the
current from.
Main Window
2.Form Window
It is a central developing Visual Basic
Application . It is where you draw your
application.
3.ToolBox
The toolbox is the selection menu for controls used in your applications
4. Properties Window
It is used to establish initial property values for objects . The drop down box at the top of the Window
lists all object in the Current form . Two views are available:-
Alphabetic
Categorized
Under this box are available properties for the currently selected object. Press F4 of project disable
from screen.
5.Form Layout Window
It shows where (upon program execution) you from will be displayed relative to your Monitor’s screen.
6.Project Window
It displays a list of all forms and modules making up your application. We can also obtain a view of the form or code
windows from the project window . shortcut key for project window is ctrl + r .
• As mentioned , the user interface is drawn in the form window . There are two ways to place
controls on form.
• 1.Double click the toolbox tools and it is created with a default size on the form you can then move
it or resize it.
• 2..Click the tool in the toolbox then without removing finger on mouse just drag the tools on the
form window then drop the mouse ,then on the form window it shows plus sign then just draw
the size of the tool whatever you want
I will explain it in the next presentation with further simples examples. This presentation is helpful for the beginners .
VB Intro to Visual Basic Event-Driven GUI Programming

More Related Content

Similar to VB Intro to Visual Basic Event-Driven GUI Programming

Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0DivyaR219113
 
Login Project with introduction .pptx
Login Project with introduction .pptxLogin Project with introduction .pptx
Login Project with introduction .pptxkulmiyealiabdille
 
Programming basics
Programming basicsProgramming basics
Programming basicsSenri DLN
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginnerSalim M
 
Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic conceptsmelody77776
 
Future Scope in Application Developement of Visual Basic
Future Scope in Application Developement of Visual BasicFuture Scope in Application Developement of Visual Basic
Future Scope in Application Developement of Visual Basicijtsrd
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdfLimEchYrr
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptxLimEchYrr
 
VB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptVB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptBhuvanaR13
 
Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lecturesmarwaeng
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxEliasPetros
 

Similar to VB Intro to Visual Basic Event-Driven GUI Programming (20)

Vb lecture
Vb lectureVb lecture
Vb lecture
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
Login Project with introduction .pptx
Login Project with introduction .pptxLogin Project with introduction .pptx
Login Project with introduction .pptx
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Introduction of Xcode
Introduction of XcodeIntroduction of Xcode
Introduction of Xcode
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
 
Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic concepts
 
Future Scope in Application Developement of Visual Basic
Future Scope in Application Developement of Visual BasicFuture Scope in Application Developement of Visual Basic
Future Scope in Application Developement of Visual Basic
 
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
 
Vb basics
Vb basicsVb basics
Vb basics
 
VB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptVB6_INTRODUCTION.ppt
VB6_INTRODUCTION.ppt
 
Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lectures
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 intro
 
Visual basic
Visual basicVisual basic
Visual basic
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
 
unit 4.docx
unit 4.docxunit 4.docx
unit 4.docx
 
VISUAL PROGRAMMING
VISUAL PROGRAMMINGVISUAL PROGRAMMING
VISUAL PROGRAMMING
 

Recently uploaded

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 

Recently uploaded (20)

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 

VB Intro to Visual Basic Event-Driven GUI Programming

  • 2. Introduction Visual Basic is a tool that allows you to develop windows (graphics User Interface- GUI) application . The application have a familiar appearance to the user. Visual Basic is event-driven ,meaning code remain idle until called upon to respond to some event(button passing , menu selection,..). Visual Basic is governed by an event processor .Nothing happened until an event is detected . Once an event is detected ,the code corresponding to that event (event procedure) is executed . Program Control is then returned to the event processor. Event Basic code Basic code Basic code
  • 3. Some features of Visual Basic • Full sets of object you draw the application. • Lots of Icons and picture for use. • Response to mouse and keyboard action. • Clipboard and printer access. • Full array of mathematical ,string handling and graphics function. • It can handle fixed and dynamic variable and control arrays. • Sequential and random access file support. • Useful debugger and error handling facilities. • Powerful database access tools. • Active X support. • Package & development wizard makes distributing your application simple.
  • 4. Structure of Visual Basic Application Project (.VBP , .MAK)
  • 5. Application is made of the followings terms :- • Forms :- Windows that you create for user interface. • Controls:- Graphical features drawn on forms to allows user interaction (textboxes, labels, scroll bar , command buttons etc.),(Forms and Controls are Object). • Properties :- Every characteristics of form or control is specified by a property. Ex- names , Caption size , color , position content , visual basic applies default properties . You can change it at design time or run time. • Methods :- Built in procedure that can be invoked to import some action to a particular object. • Event Procedure :- Code related to some object .This is the code that is executed when a certain event occurs. • General Procedure :- Code not related to object. This code must be invoked by the application. • Modules :- Collection of general procedures variable declaration and constant definition used by application.
  • 6. Steps in Developing Applications There are 3 primary steps involved in building Visual Basic Application. 1. Draw the user interface 2. Assign properties to controls 3. Attach code to controls 1.Drawing User Interface and setting Properties: Visual Basic operates in 3 modes:- • Design Mode :- Used to build application. • Run Mode :- Used to run application. • Break Mode :- application is halted and debugger is available. Design Mode Six windows appears when you start Visual Basic. 1. Main Window :- It consist of title bar , menu bar and toolbar. The title bar indicates the project name, the current VB operating modes, and the current form. The menu bar has dropdown menus from which you control the operation of VB environment .The toolbar has buttons that provide shortcuts to some of the menus options . The main window also shows the location of current from relative to the upper left corner of the screen (measured in twips) and the width and length of the current from.
  • 8. 2.Form Window It is a central developing Visual Basic Application . It is where you draw your application.
  • 9. 3.ToolBox The toolbox is the selection menu for controls used in your applications
  • 10. 4. Properties Window It is used to establish initial property values for objects . The drop down box at the top of the Window lists all object in the Current form . Two views are available:- Alphabetic Categorized Under this box are available properties for the currently selected object. Press F4 of project disable from screen.
  • 11. 5.Form Layout Window It shows where (upon program execution) you from will be displayed relative to your Monitor’s screen. 6.Project Window It displays a list of all forms and modules making up your application. We can also obtain a view of the form or code windows from the project window . shortcut key for project window is ctrl + r .
  • 12. • As mentioned , the user interface is drawn in the form window . There are two ways to place controls on form. • 1.Double click the toolbox tools and it is created with a default size on the form you can then move it or resize it. • 2..Click the tool in the toolbox then without removing finger on mouse just drag the tools on the form window then drop the mouse ,then on the form window it shows plus sign then just draw the size of the tool whatever you want I will explain it in the next presentation with further simples examples. This presentation is helpful for the beginners .