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

More Related Content

PPT
Vb unit t 1.1
Gayathri Cit
 
PPT
visual basic v6 introduction
bloodyedge03
 
PPT
Introduction to visual basic programming
Roger Argarin
 
PPT
Microsoft visual basic 6
Penang, Malaysia
 
PDF
Visual basic 6.0
sanket1996
 
PPT
Meaning Of VB
Mohit Verma
 
PPTX
Visusual basic
Mandavi Classes
 
PPT
Oracle 10g Forms Lesson 10
KAMA3
 
Vb unit t 1.1
Gayathri Cit
 
visual basic v6 introduction
bloodyedge03
 
Introduction to visual basic programming
Roger Argarin
 
Microsoft visual basic 6
Penang, Malaysia
 
Visual basic 6.0
sanket1996
 
Meaning Of VB
Mohit Verma
 
Visusual basic
Mandavi Classes
 
Oracle 10g Forms Lesson 10
KAMA3
 

Similar to Visual basic (20)

DOCX
Vb lecture
alldesign
 
PDF
Introduction to Visual Basic 6.0
DivyaR219113
 
PPTX
Login Project with introduction .pptx
kulmiyealiabdille
 
PPTX
Programming basics
Senri DLN
 
PDF
Introduction of Xcode
Dhaval Kaneria
 
PPT
visual basic for the beginner
Salim M
 
DOCX
Visual basic concepts
melody77776
 
PDF
Future Scope in Application Developement of Visual Basic
ijtsrd
 
PPTX
vb.pptx
CherryLim21
 
PDF
vb-160518151614.pdf
LimEchYrr
 
PPTX
vb-160518151614.pptx
LimEchYrr
 
PPT
Vb basics
sagaroceanic11
 
PPT
VB6_INTRODUCTION.ppt
BhuvanaR13
 
PDF
Software engineering modeling lab lectures
marwaeng
 
PPTX
Introduction to Visual Basic Programming
abacusgtuc
 
PPTX
Visual Programming
ASHRAFALI592771
 
PPTX
Vb6.0 intro
JOSEPHINEA6
 
PPT
Visual basic
umesh patil
 
PPT
vb-1605181cbddfbfbdfbfdbdfbfdbdfbfdbfdb51614.ppt
Anwar Patel
 
PPTX
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
gayathripcs
 
Vb lecture
alldesign
 
Introduction to Visual Basic 6.0
DivyaR219113
 
Login Project with introduction .pptx
kulmiyealiabdille
 
Programming basics
Senri DLN
 
Introduction of Xcode
Dhaval Kaneria
 
visual basic for the beginner
Salim M
 
Visual basic concepts
melody77776
 
Future Scope in Application Developement of Visual Basic
ijtsrd
 
vb.pptx
CherryLim21
 
vb-160518151614.pdf
LimEchYrr
 
vb-160518151614.pptx
LimEchYrr
 
Vb basics
sagaroceanic11
 
VB6_INTRODUCTION.ppt
BhuvanaR13
 
Software engineering modeling lab lectures
marwaeng
 
Introduction to Visual Basic Programming
abacusgtuc
 
Visual Programming
ASHRAFALI592771
 
Vb6.0 intro
JOSEPHINEA6
 
Visual basic
umesh patil
 
vb-1605181cbddfbfbdfbfdbdfbfdbdfbfdbfdb51614.ppt
Anwar Patel
 
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
gayathripcs
 
Ad

More from Shabista Imam (11)

PDF
Structured Programming with C++ :: Kjell Backman
Shabista Imam
 
PDF
Introduction to Computer Networks: Peter L Dordal
Shabista Imam
 
PDF
Complete University of Calculus :: 2nd edition
Shabista Imam
 
PDF
Complete guidance book of Asp.Net Web API
Shabista Imam
 
PDF
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Shabista Imam
 
PDF
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
Shabista Imam
 
PDF
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
PDF
System design handwritten notes guidance
Shabista Imam
 
PDF
special_edition_using_visual_foxpro_6.pdf
Shabista Imam
 
PDF
Complete WordPress Programming Guidance Book
Shabista Imam
 
PPTX
Introduction to c programming,
Shabista Imam
 
Structured Programming with C++ :: Kjell Backman
Shabista Imam
 
Introduction to Computer Networks: Peter L Dordal
Shabista Imam
 
Complete University of Calculus :: 2nd edition
Shabista Imam
 
Complete guidance book of Asp.Net Web API
Shabista Imam
 
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Shabista Imam
 
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
Shabista Imam
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
System design handwritten notes guidance
Shabista Imam
 
special_edition_using_visual_foxpro_6.pdf
Shabista Imam
 
Complete WordPress Programming Guidance Book
Shabista Imam
 
Introduction to c programming,
Shabista Imam
 
Ad

Recently uploaded (20)

PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PDF
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PDF
All chapters of Strength of materials.ppt
girmabiniyam1234
 
PDF
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
PPTX
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
Zero Carbon Building Performance standard
BassemOsman1
 
All chapters of Strength of materials.ppt
girmabiniyam1234
 
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 

Visual basic

  • 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 .