search for books and compare prices
Tables of Contents for Microsoft Visual Basic Basics
Chapter/Section Title
Page #
Page Count
How to Use This Book
iv
 
Preface
vi
 
List of Tables
xi
 
Start-Up Checklist
xii
 
UNIT 1 Your First Visual Basic Program
A First Look at Microsoft Visual basic
2
16
Introduction to Microsoft Visual Basic
2
1
Starting Visual Basic
3
1
Opening an Existing Visual Basic Project
4
1
Components of the Compiler
5
7
Running a Visual Basic Program
12
1
Positioning a Form in a Visual Basic Program
13
1
Exiting Visual Basic
14
4
Forms, Controls, and Properties
18
20
Creating a New Project
18
4
Saving the Project
22
1
Viewing and Modifying Properties
23
3
Creating Controls
26
4
Understanding Focus
30
2
Setting Additional Properties
32
6
Events and Code
38
24
Events
38
1
Accessing the code Window
39
1
Adding Code to a Command Button
40
2
Adding an Image to a Form
42
2
Setting Image Properties
44
2
Setting Properties from Code
46
2
Setting the Cancel and Default Command Button Properties
48
1
Creating a Standalone Program
49
13
Unit 1 Review
55
7
UNIT 2 Calculations and Data
Mathematical Operators
62
20
Performing Calculations in Visual basic
62
1
Creating Label Controls
63
1
Using the Addition and Assignment Operators
64
1
Using Text Boxes and the Val Function
65
1
Splitting Code Statements Among Lines
66
3
Using the Subtraction Operator
69
2
Using Unary Minus
71
1
Using the Multipication and Division Operators
72
1
Using Fix
72
2
Performing Integer Division and Using Modulus
74
8
Exponentiation, Order of Operations and Error Handling
82
18
Exponentiation
82
1
Order of Operations
82
4
Using the Visible Property to Enhance Output
86
1
Using Comments
87
1
Handling Run-Time Errors
88
3
Using MsgBox
91
2
Controlling Program Flow around the Error Handler
93
7
Data Types and Variables
100
18
Data Types
100
2
Using the AutoSize Property
102
2
Declaring Variables
104
1
Using Variables
105
2
Scope
107
3
Using the Variant Data Type and Option Explicit
110
8
Strings and Decimal Types
118
26
Declaring String Variables
118
1
Assigning Text to String Variables
119
2
Concatenation
121
4
Using Decimal Types
125
1
Using the Formal Function
126
2
Using the Enabled Property
128
2
Using the SelStart and SelLength Properties
130
14
Unit 2 Review
137
7
UNIT 3 Decision Making
If Statements
144
20
The Building Blocks of Decision Making
144
1
Using the Conditional Operators
145
1
Using If Statements
146
2
Creating and Reading Flowcharts
148
2
Using If...Else Statements
150
2
Using Check Boxes
152
5
Using the Logical Operators
157
7
Nested If Statements and Option Buttons
164
26
Using Nested If Statements
164
3
Using Option Buttons
167
6
Using a Form Load Event Procedure
173
1
Using Select Case
174
16
Unit 3 Review
183
7
UNIT 4 Loops, Multiple Forms, Menus, and Printing
Do Loops
190
20
What Are Loops?
190
1
Using the Do Loops
190
5
Using the InputBox Function
195
3
Using the DoEvents Statement
198
5
Using Nested Loops
203
7
For Next Loops and Multiple Forms
210
22
Using the Print Statement
210
2
Using For Next Loops
212
3
Nesting For Next Loops
215
2
Changing Label Font Settings
217
2
Using Multiple Forms
219
7
Adding an About Box
226
6
Menus and Printing
232
24
Creating Menus Using the Menu Editor
232
3
Writing Code for a Menu Command
235
2
Using Check Marks in Menus
237
2
Creating a Submenu
239
2
Inserting Separator Lines in Menus
241
1
Printing from Visual Basic
242
14
Unit 4 Review
250
6
UNIT 5 Graphics and Drawing
Lines and Shapes
256
16
Creating Line Controls
256
2
Creating Shape Controls
258
1
Changing Properties of Line and Shape Controls
258
2
Manipulating Line and Shape Control Properties from Code
260
3
Drawing Lines from Code
263
2
Changing the ScaleMode Property
265
1
Drawing Boxes from Code
266
6
Case Study--Snake Game
272
 
Running the Snake Game
272
 
Drawing with Pixels and Using AutoRedraw
273
 
How the Snake Game Draws the Snake
275
 
Analyzing the Snake Game Code
277
 
Unit 5 Review
289