Basics of VB
Basics of VB
BASIC
PRESENTED BY :
Dr.R.Gunasundari
Professor
Department of Computer Applications
Karpagam Academy of Higher Education
Coimbatore
Objectives
Machine Language
different for each computer processor
Procedure-Oriented Languages
FORTRAN
COBOL
Pascal
C
Ada
History of Programming
Languages
Object-oriented languages
Smalltalk
C++
Ada 95
Event-driven languages
VisualBasic
most Visual languages
History of Programming
Languages
Natural languages
computer will accept a user’s native or
natural language, such as English
Researchers continue to work in this
area
eg :Spell check, Autocomplete, Voice text
messaging, Spam filters, Related keywords on
search engines
Background of Visual Basic
BASIC
Beginner’sAll-purpose Symbolic
Instruction Code
Designed to teach programming to
beginners
BASIC language interpreter, one of
Microsoft’s first products
Background of Visual Basic
BASIC
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
Visual Basic Editions
Learning Edition
Professional Edition
Enterprise Edition
Included in Visual Studio suite
(analogy Office for programmers)
Visual Basic Editions
Project
Toolbox Explorer
Form
Designer
Window
Properties
window
Code Editor
Window
Form Layout
Window
Elements of the Integrated
Development Environment
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
Get Help When You Need It
MSDN Library
Microsoft on the Web
Learning Edition of Visual Basic 6.0
Visual Basic 6.0 in Action book
Learn Visual Basic Now multimedia
tutorial
MSDN Library
19
Simple Program: Printing a Line
of Text
1. Create the console application
Select File > New > Project…
In the left pane, select Visual Basic Projects
In the right pane, select Console Application
Name the project Welcome1
Specify the desired location
2. Change the name of the program file
Click Module1.vb in the Solution Explorer
window
In the Properties window, change the File Name
property to Welcome1.vb
20
Simple Program: Printing a Line of Text
Left pane Right pane
Project
name
File
location
21
Simple Program: Printing a Line
of Text
Editor window (containing
program code)
Click Module1.vb to
display its properties
Properties window
File Name
property
23
Simple Program: Printing a
Line of Text
Blue underline
indicates a syntax
error
Error description(s)
26