chapter 1 introduction to visual basic programming and applications 1 joshi r.g. dept. of computer...
TRANSCRIPT
![Page 1: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/1.jpg)
Chapter 1Chapter 1Introduction to Introduction to Visual BasicVisual Basic
Programming and Applications
1
Joshi R.G. Dept. of Computer Sci. YMA
![Page 2: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/2.jpg)
ObjectivesObjectivesMachine language vs.. High-level
languageProcedure-oriented, object-oriented,
and event-driven languagesBackground of Visual BasicVB Integrated Development
EnvironmentOnline documentation and Help
features
2
![Page 3: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/3.jpg)
Application ProgramsApplication Programs
Program - detailed set of instructions for a computer to execute
Application programs (applications or apps) - self-contained collection of programs that perform a task for the end user
Programming language - formal language used to give instructions to computers
3
![Page 4: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/4.jpg)
History of Programming History of Programming LanguagesLanguages
Machine languageProcedure-oriented languagesObject-oriented languagesEvent-driven languagesNatural languages
4
![Page 5: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/5.jpg)
History of Programming History of Programming LanguagesLanguages
Machine Language ◦ different for each computer processor
Procedure-Oriented Languages◦ FORTRAN◦ COBOL◦ Pascal◦ C◦ Ada
5
![Page 6: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/6.jpg)
History of Programming History of Programming LanguagesLanguages
Object-oriented languages◦Smalltalk◦C++◦Ada 95
Event-driven languages◦Visual Basic◦most Visual languages
6
![Page 7: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/7.jpg)
History of Programming History of Programming LanguagesLanguages
Natural languages◦computer will accept a user’s native
or natural language, such as English◦Researchers continue to work in this
area
7
![Page 8: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/8.jpg)
Background of Visual Background of Visual BasicBasicBASIC
◦Beginner’s All-purpose Symbolic Instruction Code
◦By John Kemeny and Thomas Kurtz ◦Designed to teach programming to
beginners◦BASIC language interpreter, one of
Microsoft’s first products
8
![Page 9: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/9.jpg)
Background of Visual Background of Visual BasicBasicBASIC
◦ Included with DOS◦ QBASIC - included with DOS Version 5 -
subset of BASIC
Visual Basic◦ 1992 - Visual Basic 1 for Windows 3◦ Visual Basic 4 - for Windows 95◦ Visual Basic 5 - for Office 97◦ Visual Basic 6 - for Windows 98 & Office
2000
9
![Page 10: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/10.jpg)
Visual Basic EditionsVisual Basic EditionsLearning EditionProfessional EditionEnterprise EditionIncluded in Visual Studio suite
(analogy Office for programmers)
10
![Page 11: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/11.jpg)
Visual Basic EditionsVisual Basic EditionsOther Visual Basic packaging
options◦VBA (Visual Basic for Applications)◦Windows CE Toolkit for Visual Basic◦Visual Basic Scripting Edition◦Control Creation Edition
11
![Page 12: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/12.jpg)
12
Toolbox
Form Designer Window
Code Editor Window
Project Explorer
Properties window
Form Layout Window
Visual Basic 6 Interactive Development Environment
![Page 13: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/13.jpg)
Elements of the Integrated Elements of the Integrated Development EnvironmentDevelopment Environment
Application iconApplication nameContext menusControlsCurrent projectDesign view
modeTitle bar
Major windows◦ Form Designer◦ Form Layout◦ Toolbox◦ Project Explorer◦ Object Browser◦ Properties◦ Code Editor◦ Immediate, Locals, Watch
13
![Page 14: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/14.jpg)
Introduction to Visual Introduction to Visual BasicBasic
Hands-On Exercise 1 ◦Start Microsoft Visual Basic 6.0◦Open the Welcome Project◦Open the Welcome Form◦Run the Welcome Project◦End the Welcome Project◦Exit Visual Basic
14
![Page 15: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/15.jpg)
Get Help When You Need Get Help When You Need ItItMSDN LibraryMicrosoft on the WebLearning Edition of Visual Basic
6.0◦Visual Basic 6.0 in Action book◦Learn Visual Basic Now multimedia
tutorial
15
![Page 16: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/16.jpg)
MSDN LibraryMSDN Library
16
Topic PaneNavigation Pane
![Page 17: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/17.jpg)
MSDN LibraryMSDN Library
Visual Basic Documentation◦Documentation Map◦What’s New◦Programmer’s Guide◦Samples◦Reference Guidebooks◦Component Tools Guide◦Data Access Guide
17
![Page 18: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/18.jpg)
Get Help from the CDGet Help from the CD
Hands-On Exercise 2◦Open the Calc Sample Application◦Run the Calc Sample Application◦Get Help from the MSDN Library◦Add a Topic to the Favorites List◦Search for a Definition◦Exit Help and Visual Basic
18
![Page 19: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/19.jpg)
Help from the WebHelp from the WebPull down Help menuSelect Help from the Web
◦or www.microsoft.com/vbasic
19
![Page 20: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/20.jpg)
Get Help from the WebGet Help from the Web
Hands-On Exercise 3◦Use the Free Stuff Page to Update VB◦Install the Update (optional)◦Product News◦Frequently Asked Questions◦Online Support
20
![Page 21: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/21.jpg)
Use the Right Tool Use the Right Tool for the Jobfor the Job
Microsoft Office Suite◦ Word - word processing◦ Excel - spreadsheet◦ PowerPoint - presentation◦ Access - database
OLE = Object Linking and Embedding
Use Visual Basic to create a specialized, customized application
21
![Page 22: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/22.jpg)
Summary ...Summary ...Event-driven languages is a
major improvement in programming languages
Editions include Learning Edition, Professional Edition, and Enterprise Edition
CD-ROM includes the MSDN Library, and many sample programs
22
![Page 23: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/23.jpg)
SummarySummaryIntegrated Development
Environment includes ◦ Form Designer, Form Layout◦ Code Edition, Project Explorer◦ Properties and Object Browser
Choose the right tool for the jobVisual Basic is the glue that binds
Windows objects together
23
![Page 24: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/24.jpg)
Practice with Visual BasicPractice with Visual Basic
1. Automated Teller Machine2. Personal News Service3. Getting Assistance While You
Work4. Pricing Information
24
![Page 25: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/25.jpg)
Case StudiesCase StudiesI Wish I CouldVisual Basic Help on the WebQuick Reference ManualPlanning for Disaster
25
![Page 26: Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA](https://reader035.vdocuments.site/reader035/viewer/2022062407/56649e045503460f94aefc98/html5/thumbnails/26.jpg)
Thank Thank
YouYou
26