SlideShare ist ein Scribd-Unternehmen logo
1 von 30
4 PICS
1 WORD
_ _ _ _ _ _ _
N O G P A R T R M
P R O G R A M
_ _ _ _ _ _
I L N U S C A E V
V I S U A L
_ _ _ _ _ _ _ _ _
T I O S F O B A M T E C R
M I C R O S O F T
_ _ _ _ _ _ _ _
S G A P R I H T E C R
G R A P H I C S
VISUAL BASIC
PROGRAMMING
Introduction to
Microsoft Visual Basic
• Is a trademark name owned by
Microsoft Corporation for a high-
level, visual programming version
of the BASIC.
• It was designed for building
windows-based applications. As
long as you are familiar with the
windows environment, you can
easily learn and create your own
application.
History and Development
• Visual Basic (VB) was evolved from
BASIC.
• BASIC, developed in 1964 by Prof. John
Kemeny and Thomas Kurtz of Darmonth
College.
History and Development
• With the development of the Microsoft
windows graphical user interface in the
late 80’s and early 90’s, the natural
evolution of BASIC to VB was begun by
Microsoft Corporation in 1991
History and Development
• Until VB appeared, developing Microsoft
windows-based applications was a
difficult and cumbersome process. VB
simplifies windows application
development. Since 1991, six versions
of VB have been release with the latest
VB 2012.
History and Development
TYPES OF PROGRAMMING
Visual Basic is a distinctly different
language from BASIC. It provides
powerful features such as graphical user
interface (GUI) event handling, object
oriented features, error handling,
structured programming, and much more.
In order to understand the application
development process, it is helpful to
understand first some of the key concepts
upon which VB is built.
TYPES OF PROGRAMMING
A. Textual Programming – A way to create a
program wherein you write a code using the
syntax of a particular language. A text based
program is developed by a procedural language.
The most widely used are C, Pascal, BASIC,
FORTRAN, COBOL.
Sample:
Rem This program computes for the area of a rectangular figure.
Input “Enter Length: “; L
Input “Enter Width: “;W
A = L * W
Print “The area is “; A “sq. units.”
end
TYPES OF PROGRAMMING
B. Event Programming or Visual Programming – a
method of programming with the use of a
programming environment in which basic
program components can be selected through
menu choices, buttons, icons and other
predetermined methods. In creating programs,
the icons used represent common programming
routines.
EVENT here is defined as an action or
occurrence, often generated by the user, to
which a program might respond. (ex. Key
presses, button clicks, or mouse movements.)
Sample of Event Programming
PROGRAM OUTPUT
Visual Basic Program Development
Cycle
Developing a Program
Writing a VB program requires a few steps. Have a concrete
plan on what you are going to do, design an interface for
it, and write a program to achieve it. Below are the steps
in developing a VB Program. These steps are what we
call the program development cycle.
1. Define what you want the computer to do.
2. Decide how your program will look on the
screen.
3. Design what you planned.
4. Enhance your design.
5. Write your codes.
6. Test your program.
7. Edit, if necessary
Visual Basic Program Development
Cycle
1. Define what you want the computer to do.
If you have a concrete idea as to what you are planning
to do, it will be easier for you to start one by writing all
the needed requirements (paper and pencil).
Example:
Purpose or Project: To design an Employee’s Pay Slip
Data needed: Employee number, department, employee
name, basic pay, allowances, deductions and net pay.
Visual Basic Program Development
Cycle
2. Decide how your program will look on the screen.
Similar to a designer, you start working on your canvass,
having your first sketches. You may start working with a
paper and pencil or you may put your design directly to
VB. Planning the design of your program is one of the
most exciting part in VB. The look of your program is
what we call USER INTERFACE
Example: GLOBAL NETWORK INC.
Employee’s Pay Slip
Employee Number Department
First Name Last Name
Basic Salary Deductions
Allowances Net Pay
Visual Basic Program Development
Cycle
3 Design what you planned. –
Draw the user interface using common parts such as
windows, menus and command buttons. In VB, you will
be working on your FORM, plan where to start your
design. (The parts of a user interface are called Objects
or Controls.)
Example:
Visual Basic Program Development
Cycle
4. Enhance your design. – define the name, color, size and
appearance or each user interface object. (an Object’s
characteristics are its properties)
Example:
Visual Basic Program Development
Cycle
5. Write your codes.
Write instructions in BASIC to make each part of your
program do something . (Your BASIC Instructions are
the commands or codes.)
Visual Basic Program Development
Cycle
6. Test your program
Run your program to see if it works.
Visual Basic Program Development
Cycle
7. Edit, if necessary
If you want to make changes in the interface design,
just restructure it. If there is a problem with the codes,
fix any errors (or bugs) in your program.
Visual Basic Integrated
Development Environment (IDE)
Visual Basic Integrated
Development Environment (IDE)
The IDE is a set of
integrated tools for
developing software.
The VB IDE allows the
programmer to create, run,
and debug VB programs
conveniently and quickly.
This method is called RAD
(Rapid Application
Development)
END OF PRESENTATION
Test Yourself: Complete the following
acronym
I.
1. RAD : _______________________
2. VB : _______________________
3. BASIC: _______________________
4. IDE : _______________________
5. GUI : _______________________
II.
Enumerate the Visual Basic Program Development Cycle.
1.
2.
3.
4.
5.
6.
7.
Test Yourself:
Give three examples of an Event:
1.
2.
3.
III.
Differentiate Textual Programming from Event
Programming (5 pts)
____________________________________________
____________________________________________
____________________________________________
Transitional
Page
Backdrops:
- These are full sized
backdrops, just scale them up!
- Can be Copy-Pasted out of
Templates for use anywhere!
www.animationfactory.com

Weitere ähnliche Inhalte

Ähnlich wie LESSON 1- VISUAL BASIC PROGRAMMING.ppt

hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
EliasPetros
 
Programming lesson1
Programming lesson1Programming lesson1
Programming lesson1
camfollower
 
Apress.migrating.to.windows.phone.dec.2011
Apress.migrating.to.windows.phone.dec.2011Apress.migrating.to.windows.phone.dec.2011
Apress.migrating.to.windows.phone.dec.2011
gautamkumar048
 

Ähnlich wie LESSON 1- VISUAL BASIC PROGRAMMING.ppt (20)

introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
 
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 Programming Lecture.pptx
Visual Programming Lecture.pptxVisual Programming Lecture.pptx
Visual Programming Lecture.pptx
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
 
Introduction to oop (object oriented programming)
Introduction to oop (object oriented programming)Introduction to oop (object oriented programming)
Introduction to oop (object oriented programming)
 
Membangun Desktop App
Membangun Desktop AppMembangun Desktop App
Membangun Desktop App
 
Visual basic
Visual basicVisual basic
Visual basic
 
Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VB
 
Visual basic
Visual basicVisual basic
Visual basic
 
Module 1 2 just basic-
Module 1 2  just basic-Module 1 2  just basic-
Module 1 2 just basic-
 
Module 201 2 20 just 20 basic
Module 201   2  20  just 20 basic Module 201   2  20  just 20 basic
Module 201 2 20 just 20 basic
 
Class viii ch-7 visual basic 2008
Class  viii ch-7 visual basic 2008Class  viii ch-7 visual basic 2008
Class viii ch-7 visual basic 2008
 
Programming lesson1
Programming lesson1Programming lesson1
Programming lesson1
 
Ch02 bronson
Ch02 bronsonCh02 bronson
Ch02 bronson
 
Apress.migrating.to.windows.phone.dec.2011
Apress.migrating.to.windows.phone.dec.2011Apress.migrating.to.windows.phone.dec.2011
Apress.migrating.to.windows.phone.dec.2011
 
Beginning Visual Basic 2015
Beginning Visual Basic 2015Beginning Visual Basic 2015
Beginning Visual Basic 2015
 
Vb unit t 1.1
Vb unit t 1.1Vb unit t 1.1
Vb unit t 1.1
 
Grade 9 COMPUTER
Grade 9 COMPUTERGrade 9 COMPUTER
Grade 9 COMPUTER
 

Kürzlich hochgeladen

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
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
negromaestrong
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
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...
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
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
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 

LESSON 1- VISUAL BASIC PROGRAMMING.ppt

  • 2. _ _ _ _ _ _ _ N O G P A R T R M P R O G R A M
  • 3. _ _ _ _ _ _ I L N U S C A E V V I S U A L
  • 4. _ _ _ _ _ _ _ _ _ T I O S F O B A M T E C R M I C R O S O F T
  • 5. _ _ _ _ _ _ _ _ S G A P R I H T E C R G R A P H I C S
  • 7. Microsoft Visual Basic • Is a trademark name owned by Microsoft Corporation for a high- level, visual programming version of the BASIC. • It was designed for building windows-based applications. As long as you are familiar with the windows environment, you can easily learn and create your own application.
  • 8. History and Development • Visual Basic (VB) was evolved from BASIC. • BASIC, developed in 1964 by Prof. John Kemeny and Thomas Kurtz of Darmonth College.
  • 9. History and Development • With the development of the Microsoft windows graphical user interface in the late 80’s and early 90’s, the natural evolution of BASIC to VB was begun by Microsoft Corporation in 1991
  • 10. History and Development • Until VB appeared, developing Microsoft windows-based applications was a difficult and cumbersome process. VB simplifies windows application development. Since 1991, six versions of VB have been release with the latest VB 2012.
  • 12. TYPES OF PROGRAMMING Visual Basic is a distinctly different language from BASIC. It provides powerful features such as graphical user interface (GUI) event handling, object oriented features, error handling, structured programming, and much more. In order to understand the application development process, it is helpful to understand first some of the key concepts upon which VB is built.
  • 13. TYPES OF PROGRAMMING A. Textual Programming – A way to create a program wherein you write a code using the syntax of a particular language. A text based program is developed by a procedural language. The most widely used are C, Pascal, BASIC, FORTRAN, COBOL. Sample: Rem This program computes for the area of a rectangular figure. Input “Enter Length: “; L Input “Enter Width: “;W A = L * W Print “The area is “; A “sq. units.” end
  • 14. TYPES OF PROGRAMMING B. Event Programming or Visual Programming – a method of programming with the use of a programming environment in which basic program components can be selected through menu choices, buttons, icons and other predetermined methods. In creating programs, the icons used represent common programming routines. EVENT here is defined as an action or occurrence, often generated by the user, to which a program might respond. (ex. Key presses, button clicks, or mouse movements.)
  • 15. Sample of Event Programming PROGRAM OUTPUT
  • 16. Visual Basic Program Development Cycle Developing a Program Writing a VB program requires a few steps. Have a concrete plan on what you are going to do, design an interface for it, and write a program to achieve it. Below are the steps in developing a VB Program. These steps are what we call the program development cycle. 1. Define what you want the computer to do. 2. Decide how your program will look on the screen. 3. Design what you planned. 4. Enhance your design. 5. Write your codes. 6. Test your program. 7. Edit, if necessary
  • 17. Visual Basic Program Development Cycle 1. Define what you want the computer to do. If you have a concrete idea as to what you are planning to do, it will be easier for you to start one by writing all the needed requirements (paper and pencil). Example: Purpose or Project: To design an Employee’s Pay Slip Data needed: Employee number, department, employee name, basic pay, allowances, deductions and net pay.
  • 18. Visual Basic Program Development Cycle 2. Decide how your program will look on the screen. Similar to a designer, you start working on your canvass, having your first sketches. You may start working with a paper and pencil or you may put your design directly to VB. Planning the design of your program is one of the most exciting part in VB. The look of your program is what we call USER INTERFACE Example: GLOBAL NETWORK INC. Employee’s Pay Slip Employee Number Department First Name Last Name Basic Salary Deductions Allowances Net Pay
  • 19. Visual Basic Program Development Cycle 3 Design what you planned. – Draw the user interface using common parts such as windows, menus and command buttons. In VB, you will be working on your FORM, plan where to start your design. (The parts of a user interface are called Objects or Controls.) Example:
  • 20. Visual Basic Program Development Cycle 4. Enhance your design. – define the name, color, size and appearance or each user interface object. (an Object’s characteristics are its properties) Example:
  • 21. Visual Basic Program Development Cycle 5. Write your codes. Write instructions in BASIC to make each part of your program do something . (Your BASIC Instructions are the commands or codes.)
  • 22. Visual Basic Program Development Cycle 6. Test your program Run your program to see if it works.
  • 23. Visual Basic Program Development Cycle 7. Edit, if necessary If you want to make changes in the interface design, just restructure it. If there is a problem with the codes, fix any errors (or bugs) in your program.
  • 25. Visual Basic Integrated Development Environment (IDE) The IDE is a set of integrated tools for developing software. The VB IDE allows the programmer to create, run, and debug VB programs conveniently and quickly. This method is called RAD (Rapid Application Development)
  • 27. Test Yourself: Complete the following acronym I. 1. RAD : _______________________ 2. VB : _______________________ 3. BASIC: _______________________ 4. IDE : _______________________ 5. GUI : _______________________ II. Enumerate the Visual Basic Program Development Cycle. 1. 2. 3. 4. 5. 6. 7.
  • 28. Test Yourself: Give three examples of an Event: 1. 2. 3. III. Differentiate Textual Programming from Event Programming (5 pts) ____________________________________________ ____________________________________________ ____________________________________________
  • 30. Backdrops: - These are full sized backdrops, just scale them up! - Can be Copy-Pasted out of Templates for use anywhere! www.animationfactory.com