SlideShare a Scribd company logo
VISUAL PROGRAMMING
STAFF NAME : D.SARITHA
ASSISTANT PROFESSOR
DEPARTMENT OF COMPUTER APPLICATIONS
BON SECOURS COLLEGE FOR WOMEN
THANJAVUR
UNIT : I
CHAPTER : 1
TOPIC : INTRODUCTION TO VISUAL BASIC
INTRODUCTION TO
VISUAL BASIC
PERFORMING A TASK ON THE COMPUTER
 Determine Output
 Identify Input
 Determine process necessary to turn given
Input into desired Output
PICTORIAL REPRESENTATION OF THE PROBLEM
SOLVING PROCESS
WHAT IS VISUAL BASIC?
 High Level 4th Generation Programming
Language
 Object and Event Driven
 Visual - Windows Based
 Integrated Development Environment or IDE
WHAT IS VB USED FOR?
 Most Popular Programming Language
 Stand alone programs
 Applets that can be run on many different
kinds of computers
 Customized specialized Applications
 E- Commerce
 Web based shopping forms and inquiries
 User friendly Interface to applications
l l l l l l
Used by a computer equipment retail outlet to
record data regarding customer orders.
EXAMPLE ORDER ENTRY SCREEN
Allows user to use a mouse to click on boxes for text entry.
Also enables user to click on buttons
to initiate processing steps.
GENERATIONS OF COMPUTER LANGUAGES
 1st - Machine language - 0110 0011 1000
 2nd - Procedure-oriented languages
 FORTRAN - 1954 for scientists and engineers
 COBOL - 1959 for business applications
 C - 1972 - for UNIX operating systems
 3rd - Object-oriented languages
 4th - Event-driven languages - i.e.VB
 5th - Natural languages i.e. English
COMPILER VS INTERPRETER
 Higher Languages are translated to
Machine Language by:
Interpreter
 Translates instructions to machine code line-by-
line.
 BASIC, Quick Basic, Visual Basic
Compiler
 Translates the entire program to machine code
before running it.
 Fortran, C, C++, Visual Basic is also a compiler
WHAT ARE THE OBJECTS IN VB?
 Pre-programmed Code
for:
 Command Buttons
 Labels
 Pictures
 Text Boxes
 Have both data and
procedures wrapped
together
WHAT ARE THE EVENTS?
 Visual Basic “watches” what the user does
 A user activity is called an event
 Events include mouse clicks and moves, menu
selections, button presses, etc.
 Sections of code are only executed in response to
an event
WHAT IS THE INTEGRATED DEVELOPMENT
ENVIRONMENT (IDE)?
VISUAL BASIC ENVIRONMENT
GUI (Graphical User Interface) - forms and
windows that the user sees
Property - a characteristic or attribute of an object
such as color and size
Event - a user action such as clicking a button
Code Editor window - editor specially designed to
help you when writing code
VISUAL BASIC ENVIRONMENT
Components of the VB design environment
(Form view)
VISUAL BASIC ENVIRONMENT
Components of the VB design environment
(Code view)
THE CODE EDITOR WINDOW
Object List Box
Procedure List Box
Auto List Members
Full Module View
button
THE CODE EDITOR WINDOW
Help
window
Error message box
Syntax error in Red
Procedure view button
VB ENVIRONMENT: PROJECT WINDOW
The Project Window can be used to navigate
between the code and form window for each form
/ window a project has
VB ENVIRONMENT: MENU BAR
The Menu Bar consists of 3 elements the
 Title Bar, which holds the name of application, default
if Microsoft Visual Basic [design]
 Menu Bar, this is the link to Visual Basics menu
facilities, each menu option drops down into sub-
menus
 Toolbar, contains icons which give access to the more
commonly used commands (which are also available
through the menu bar)
Title bar Menu Bar Toolbar
VB ENVIRONMENT: PROPERTIES WINDOW
Used to set how a control
looks and
behaves
Holds its default values
VB ENVIRONMENT CONTROL TOOLBOX
VB ENVIRONMENT: CONTEXT SENSITIVE
HELP
 Context sensitive help is very useful
 Select the item control that you want help on
 Press the F1 key
F1
THE FILE MENU
Project commands
Make executable commands
Most recent project list
Exit command
THE FILE MENU
 New Project
 Open Project
 Add Project
 Remove Project
 Save Project
 Save Project As
 Save Component
 Save Component As
 Print
 Print Setup
THE FILE MENU
Template - particular pattern for a project or a project
element; start a project from a template saves
time
Existing tab - displays VB projects
Recent tab - displays most recently accessed
projects
Project Groups - a collection of several projects
BUILDING YOUR FIRST APPLICATION
 There are three primary steps in building a
Visual Project:
 Place (or draw) controls on the form.
 Assign properties to the controls.
 Write event procedures for the controls.
PROJECT FILES
vbp extension = Visual Basic Project
 file that tracks all components
frm extension = Form file
 separate file for each form
frx extension = Binary form file
 cannot be read by humans
vbw extension = Visual Basic workspace
VISUAL BASIC PROGRAM STRUCTURE
 Project File
◦ ‘.VBP’
 Form Files
◦ ‘.FRM’
◦ ‘.FRX’
 Modules
◦ ‘.BAS’
 Custom
Controls
◦ ‘.VBX’ files
 Save As...
◦ Possible
problem
STARTING VISUAL BASIC
CHOOSING PROJECT TYPE
PLACING CONTROLS ON THE FORM: IMAGE
ASSIGNING PROPERTIES TO CONTROLS
ADDING AN IMAGE
BROWSE FOR AN IMAGE
IMAGE DISPLAYED
BUTTONS AND TEXT BOXES
CHANGING THE FORM TITLE
WRITING THE CODE (EVENTS)
WRITING THE CODE (EVENTS)
RUNNING THE APPLICATION
RUNNING THE APPLICATION
THANK YOU

More Related Content

What's hot

Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 Introduction
Tennyson
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
simran153
 
The ms visual basic 6
The ms visual basic 6The ms visual basic 6
The ms visual basic 6
Eyelean xilef
 
Introduction to XAML and WPF
Introduction to XAML and WPFIntroduction to XAML and WPF
Introduction to XAML and WPF
Doncho Minkov
 
MSDN Unleashed: WPF Demystified
MSDN Unleashed: WPF DemystifiedMSDN Unleashed: WPF Demystified
MSDN Unleashed: WPF Demystified
Dave Bost
 
Visual basic 6 black book
Visual basic 6 black bookVisual basic 6 black book
Visual basic 6 black book
Ajay Goyal
 

What's hot (19)

Visual basic
Visual basicVisual basic
Visual basic
 
History of Visual Basic Programming
History of Visual Basic ProgrammingHistory of Visual Basic Programming
History of Visual Basic Programming
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Vb lecture
Vb lectureVb lecture
Vb lecture
 
Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 Introduction
 
Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
 
Chapter 01: Intro to VB2010 Programming
Chapter 01: Intro to VB2010 ProgrammingChapter 01: Intro to VB2010 Programming
Chapter 01: Intro to VB2010 Programming
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
 
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
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.
 
The ms visual basic 6
The ms visual basic 6The ms visual basic 6
The ms visual basic 6
 
An Overview Of Wpf
An Overview Of WpfAn Overview Of Wpf
An Overview Of Wpf
 
Buttons In .net Visual Basic
Buttons In .net Visual BasicButtons In .net Visual Basic
Buttons In .net Visual Basic
 
Introduction to XAML and WPF
Introduction to XAML and WPFIntroduction to XAML and WPF
Introduction to XAML and WPF
 
MSDN Unleashed: WPF Demystified
MSDN Unleashed: WPF DemystifiedMSDN Unleashed: WPF Demystified
MSDN Unleashed: WPF Demystified
 
Visual basic 6 black book
Visual basic 6 black bookVisual basic 6 black book
Visual basic 6 black book
 
Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
 
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
 

Similar to VISUAL PROGRAMMING

hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
EliasPetros
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
sanket1996
 

Similar to VISUAL PROGRAMMING (20)

Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VB
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
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
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic concepts
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
Ch02 bronson
Ch02 bronsonCh02 bronson
Ch02 bronson
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
 
VB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptVB6_INTRODUCTION.ppt
VB6_INTRODUCTION.ppt
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
 
Visual basic
Visual basic Visual basic
Visual basic
 
Neha
NehaNeha
Neha
 
Introduction to Visual Basic (Week 2)
Introduction to Visual Basic (Week 2)Introduction to Visual Basic (Week 2)
Introduction to Visual Basic (Week 2)
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
 
235042632 super-shop-ee
235042632 super-shop-ee235042632 super-shop-ee
235042632 super-shop-ee
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 

Recently uploaded

Recently uploaded (20)

50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .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
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 

VISUAL PROGRAMMING

  • 1. VISUAL PROGRAMMING STAFF NAME : D.SARITHA ASSISTANT PROFESSOR DEPARTMENT OF COMPUTER APPLICATIONS BON SECOURS COLLEGE FOR WOMEN THANJAVUR UNIT : I CHAPTER : 1 TOPIC : INTRODUCTION TO VISUAL BASIC
  • 3. PERFORMING A TASK ON THE COMPUTER  Determine Output  Identify Input  Determine process necessary to turn given Input into desired Output
  • 4. PICTORIAL REPRESENTATION OF THE PROBLEM SOLVING PROCESS
  • 5. WHAT IS VISUAL BASIC?  High Level 4th Generation Programming Language  Object and Event Driven  Visual - Windows Based  Integrated Development Environment or IDE
  • 6. WHAT IS VB USED FOR?  Most Popular Programming Language  Stand alone programs  Applets that can be run on many different kinds of computers  Customized specialized Applications  E- Commerce  Web based shopping forms and inquiries  User friendly Interface to applications
  • 7. l l l l l l Used by a computer equipment retail outlet to record data regarding customer orders. EXAMPLE ORDER ENTRY SCREEN Allows user to use a mouse to click on boxes for text entry. Also enables user to click on buttons to initiate processing steps.
  • 8. GENERATIONS OF COMPUTER LANGUAGES  1st - Machine language - 0110 0011 1000  2nd - Procedure-oriented languages  FORTRAN - 1954 for scientists and engineers  COBOL - 1959 for business applications  C - 1972 - for UNIX operating systems  3rd - Object-oriented languages  4th - Event-driven languages - i.e.VB  5th - Natural languages i.e. English
  • 9. COMPILER VS INTERPRETER  Higher Languages are translated to Machine Language by: Interpreter  Translates instructions to machine code line-by- line.  BASIC, Quick Basic, Visual Basic Compiler  Translates the entire program to machine code before running it.  Fortran, C, C++, Visual Basic is also a compiler
  • 10. WHAT ARE THE OBJECTS IN VB?  Pre-programmed Code for:  Command Buttons  Labels  Pictures  Text Boxes  Have both data and procedures wrapped together
  • 11. WHAT ARE THE EVENTS?  Visual Basic “watches” what the user does  A user activity is called an event  Events include mouse clicks and moves, menu selections, button presses, etc.  Sections of code are only executed in response to an event
  • 12. WHAT IS THE INTEGRATED DEVELOPMENT ENVIRONMENT (IDE)?
  • 13. VISUAL BASIC ENVIRONMENT GUI (Graphical User Interface) - forms and windows that the user sees Property - a characteristic or attribute of an object such as color and size Event - a user action such as clicking a button Code Editor window - editor specially designed to help you when writing code
  • 14. VISUAL BASIC ENVIRONMENT Components of the VB design environment (Form view)
  • 15. VISUAL BASIC ENVIRONMENT Components of the VB design environment (Code view)
  • 16. THE CODE EDITOR WINDOW Object List Box Procedure List Box Auto List Members Full Module View button
  • 17. THE CODE EDITOR WINDOW Help window Error message box Syntax error in Red Procedure view button
  • 18. VB ENVIRONMENT: PROJECT WINDOW The Project Window can be used to navigate between the code and form window for each form / window a project has
  • 19. VB ENVIRONMENT: MENU BAR The Menu Bar consists of 3 elements the  Title Bar, which holds the name of application, default if Microsoft Visual Basic [design]  Menu Bar, this is the link to Visual Basics menu facilities, each menu option drops down into sub- menus  Toolbar, contains icons which give access to the more commonly used commands (which are also available through the menu bar) Title bar Menu Bar Toolbar
  • 20. VB ENVIRONMENT: PROPERTIES WINDOW Used to set how a control looks and behaves Holds its default values
  • 22. VB ENVIRONMENT: CONTEXT SENSITIVE HELP  Context sensitive help is very useful  Select the item control that you want help on  Press the F1 key F1
  • 23. THE FILE MENU Project commands Make executable commands Most recent project list Exit command
  • 24. THE FILE MENU  New Project  Open Project  Add Project  Remove Project  Save Project  Save Project As  Save Component  Save Component As  Print  Print Setup
  • 25. THE FILE MENU Template - particular pattern for a project or a project element; start a project from a template saves time Existing tab - displays VB projects Recent tab - displays most recently accessed projects Project Groups - a collection of several projects
  • 26. BUILDING YOUR FIRST APPLICATION  There are three primary steps in building a Visual Project:  Place (or draw) controls on the form.  Assign properties to the controls.  Write event procedures for the controls.
  • 27. PROJECT FILES vbp extension = Visual Basic Project  file that tracks all components frm extension = Form file  separate file for each form frx extension = Binary form file  cannot be read by humans vbw extension = Visual Basic workspace
  • 28. VISUAL BASIC PROGRAM STRUCTURE  Project File ◦ ‘.VBP’  Form Files ◦ ‘.FRM’ ◦ ‘.FRX’  Modules ◦ ‘.BAS’  Custom Controls ◦ ‘.VBX’ files  Save As... ◦ Possible problem
  • 31. PLACING CONTROLS ON THE FORM: IMAGE
  • 34. BROWSE FOR AN IMAGE
  • 38. WRITING THE CODE (EVENTS)
  • 39. WRITING THE CODE (EVENTS)