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

More Related Content

Similar to LESSON 1- VISUAL BASIC PROGRAMMING.ppt

introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
classall
 
vb.pptx
vb.pptxvb.pptx
vb.pptx
CherryLim21
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
LimEchYrr
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
LimEchYrr
 
Visual Programming Lecture.pptx
Visual Programming Lecture.pptxVisual Programming Lecture.pptx
Visual Programming Lecture.pptx
Muhammadkhan704767
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
EliasPetros
 
Introduction to oop (object oriented programming)
Introduction to oop (object oriented programming)Introduction to oop (object oriented programming)
Introduction to oop (object oriented programming)
Mark John Lado, MIT
 
Membangun Desktop App
Membangun Desktop AppMembangun Desktop App
Membangun Desktop App
Fajar Baskoro
 
Visual basic
Visual basicVisual basic
Visual basic
umesh patil
 
Module 1 2 just basic-
Module 1 2  just basic-Module 1 2  just basic-
Module 1 2 just basic-
Shanmugam Thiagoo
 
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
Nick Racers
 
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
jessandy
 
Programming lesson1
Programming lesson1Programming lesson1
Programming lesson1camfollower
 
Ch02 bronson
Ch02 bronsonCh02 bronson
Ch02 bronson
Bharathi N Reddy
 
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.2011gautamkumar048
 
Beginning Visual Basic 2015
Beginning Visual Basic 2015Beginning Visual Basic 2015
Beginning Visual Basic 2015
ponej
 
Vb unit t 1.1
Vb unit t 1.1Vb unit t 1.1
Vb unit t 1.1
Gayathri Cit
 
Grade 9 COMPUTER
Grade 9 COMPUTERGrade 9 COMPUTER
Grade 9 COMPUTER
Joel Linquico
 

Similar to 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
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 

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