Professional Documents
Culture Documents
Ch01-Introduction To VB
Ch01-Introduction To VB
Ch01-Introduction To VB
PowerPoint
Presentation
prepared by
James T. Perry
University of San Diego
Irwin/McGraw-Hill
1
Copyright 2000 by the McGraw-Hill Compa
Ch. 1: Introduction to VB
Writing
Windows GUI
Labels
Text boxes
Frame
Check boxes
Option buttons
Command buttons
Image
Picture box
Irwin/McGraw-Hill
Forms
Controls
Event-driven programming
Irwin/McGraw-Hill
Object Model
Objects (nouns)
Properties (adjectives)
Methods (verbs)
Versions
controls
form1.Caption
debug.print
of Visual Basic
Working Model
Learning Edition
Professional Edition
Enterprise Edition
Irwin/McGraw-Hill
Irwin/McGraw-Hill
Irwin/McGraw-Hill
The Toolbox
Tool
Irwin/McGraw-Hill
10
Irwin/McGraw-Hill
11
12
Irwin/McGraw-Hill
13
the form
14
Set Properties
Set the Name and Caption properties
Always set the Name property before writing
code
Next, set the Caption property
The
15
Write Code
You
VB
Irwin/McGraw-Hill
16
Irwin/McGraw-Hill
17
Irwin/McGraw-Hill
18
Run/Save/Open/Modify the
Project
19
(syntax) errors
Run-Time (semantic) errors
Logic errors
Project Debugging
Irwin/McGraw-Hill
20
Naming Conventions
Objects
Irwin/McGraw-Hill
21
Irwin/McGraw-Hill
22