| |
| |
Introduction | |
| |
| |
Who Should Read This Book | |
| |
| |
What This Book Will Do for You | |
| |
| |
Can This Book Really Teach Visual Basic in 24 Hours? | |
| |
| |
What You Need | |
| |
| |
Files on the Visual Basic Distribution CD-ROM | |
| |
| |
Conventions Used in This Book | |
| |
| |
Enough! Time Is Ticking! | |
| |
| |
| |
Introducing Visual Basic | |
| |
| |
| |
Visual Basic at Work | |
| |
| |
What's Visual Basic About? | |
| |
| |
Languages | |
| |
| |
Visual Basic's Various Editions | |
| |
| |
The VB Programming Process | |
| |
| |
Starting Visual Basic | |
| |
| |
Stopping Visual Basic | |
| |
| |
Mastering the Development Environment | |
| |
| |
Standards: The Menu Bar and Toolbar | |
| |
| |
The Form Window: Where It All Happens | |
| |
| |
The Toolbox Supplies Controls | |
| |
| |
The Form Layout Window Places Forms | |
| |
| |
The Project Explorer Window | |
| |
| |
The Properties Window | |
| |
| |
Help Is at Your Fingertips | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercise | |
| |
| |
| |
Analyzing Visual Basic Programs | |
| |
| |
Event-Driven Programs | |
| |
| |
Control Events | |
| |
| |
Analyzing Sample Applications | |
| |
| |
Naming Objects | |
| |
| |
Running Applications | |
| |
| |
Where's the Code? | |
| |
| |
Event Procedures | |
| |
| |
Properties and Event Procedures | |
| |
| |
Generating an Application from Scratch | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Controls and Properties | |
| |
| |
Creating New Applications | |
| |
| |
Controls Provide the Interface | |
| |
| |
Placing Controls | |
| |
| |
Sizing and Moving Controls | |
| |
| |
Setting Properties | |
| |
| |
Giving Your Users Help | |
| |
| |
Named Literals | |
| |
| |
Take a Break! | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Examining Labels, Buttons, and Text Boxes | |
| |
| |
Understanding Control Focus at Runtime | |
| |
| |
The Mouse and Hotkeys Need No Focus | |
| |
| |
Related Properties | |
| |
| |
Tab Order | |
| |
| |
Command Buttons | |
| |
| |
Labels | |
| |
| |
Text Boxes | |
| |
| |
Form Properties | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Coding the Details | |
| |
| |
| |
Putting Code into Visual Basic | |
| |
| |
Coding Basics | |
| |
| |
Data Basics | |
| |
| |
Datatypes | |
| |
| |
Variables Hold Data | |
| |
| |
Putting Data in Variables | |
| |
| |
Expressions and Math Operators | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Message and Input Boxes | |
| |
| |
A Function Preview | |
| |
| |
A MsgBox() and InputBox() Overview | |
| |
| |
Examining MsgBox() | |
| |
| |
MsgBox()'s Return Value | |
| |
| |
Visual Basic's Code Window Help | |
| |
| |
A Short Detour: Remarks | |
| |
| |
Examining InputBox() | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Making Decisions | |
| |
| |
Comparison Operators | |
| |
| |
The Comparison's Nature | |
| |
| |
Keep Each Side's Datatype Consistent | |
| |
| |
The If Statement | |
| |
| |
The If Statement Else Branch | |
| |
| |
Compound Comparisons with the Logical Operators | |
| |
| |
Multiple Choice with Select Case | |
| |
| |
Two Additional Select Case Formats | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Visual Basic Looping | |
| |
| |
The Do While Loops | |
| |
| |
The Do Until Loop | |
| |
| |
The Other Do Loops | |
| |
| |
The For Loop | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Putting Code to Work | |
| |
| |
| |
Combining Code and Controls | |
| |
| |
The Interest Calculation Application | |
| |
| |
Using Control Arrays | |
| |
| |
Finishing the Form | |
| |
| |
Adding Code | |
| |
| |
The Unload Statement | |
| |
| |
Finishing Touches | |
| |
| |
Error Checking | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
List Boxes and Data Lists | |
| |
| |
The List Box Control | |
| |
| |
Combo Boxes | |
| |
| |
Data Arrays | |
| |
| |
Control Arrays | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Additional Controls | |
| |
| |
Option Buttons | |
| |
| |
Frames and Option Buttons | |
| |
| |
Check Boxes | |
| |
| |
Scrollbars | |
| |
| |
VB's Clock: The Timer Control | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Dialog Box Basics | |
| |
| |
What the Common Dialog Box Does | |
| |
| |
Adding the Common Dialog Box Control | |
| |
| |
Generating Common Dialog Boxes | |
| |
| |
The Common Dialog Box Methods | |
| |
| |
Adding the File Dialog Boxes | |
| |
| |
The Color Dialog Box | |
| |
| |
The Font Dialog Box | |
| |
| |
The Printer Dialog Box | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Programming with Data | |
| |
| |
| |
Modular Programming | |
| |
| |
Structured Programming | |
| |
| |
Calling Procedures and Returning from Them | |
| |
| |
Coding Subroutines | |
| |
| |
Coding Functions | |
| |
| |
Coding Arguments | |
| |
| |
Receiving by Reference and by Value | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Built-In Functions Save Time | |
| |
| |
Many Functions | |
| |
| |
Numeric Functions | |
| |
| |
String Functions | |
| |
| |
Date and Time Functions | |
| |
| |
Data-Testing Functions | |
| |
| |
Data Conversion Functions | |
| |
| |
Format Function | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Visual Basic Database Basics | |
| |
| |
File Concepts | |
| |
| |
Opening Files | |
| |
| |
Closing Files | |
| |
| |
Deleting Files | |
| |
| |
Writing to Files with Write # | |
| |
| |
Inputting with Input # | |
| |
| |
Line Input Records | |
| |
| |
Introduction to Database Processing | |
| |
| |
The Date Control | |
| |
| |
A Simple but Powerful Application | |
| |
| |
The Data Form Wizard | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Printing with Visual Basic | |
| |
| |
Introducing Printing | |
| |
| |
Preparing the User for Printing | |
| |
| |
Introducing the Printer Object | |
| |
| |
The Print Method | |
| |
| |
Printing Literals | |
| |
| |
Printing Variables and Controls | |
| |
| |
Printing Expressions | |
| |
| |
Printing Multiple Values | |
| |
| |
Using the Fonts | |
| |
| |
Better Spacing with Spc() and Tab() | |
| |
| |
Starting to Print | |
| |
| |
Page Breaks | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Sprucing Up Programs | |
| |
| |
| |
Menus and Visual Basic | |
| |
| |
The Menu Editor | |
| |
| |
Adding an Application's Menu Bar | |
| |
| |
Naming Menu Options | |
| |
| |
Adding Pull-Down Menu Options | |
| |
| |
Menu Extras | |
| |
| |
Connecting Menus to Event Procedures | |
| |
| |
Copying Menus Between Projects | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
The Graphic Image Controls | |
| |
| |
The Image Control | |
| |
| |
Preparing the Image | |
| |
| |
Sizing the Image | |
| |
| |
Loading Pictures at Runtime | |
| |
| |
The Picture Box Control | |
| |
| |
Animating Pictures | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Toolbars and More Graphics | |
| |
| |
Preparing for the Toolbar | |
| |
| |
The Image List Control | |
| |
| |
Finalizing the Toolbar | |
| |
| |
The Line and Shape Controls | |
| |
| |
The Line Control | |
| |
| |
Mastering the Line Control | |
| |
| |
Mastering the Shape Control | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Writing Correct Applications | |
| |
| |
Kinds of Errors | |
| |
| |
The Debugger | |
| |
| |
Setting Breakpoints | |
| |
| |
Stepping Through Code | |
| |
| |
The Call Stack Shows Where You've Been | |
| |
| |
The Immediate Window | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Advancing Visual Basic Applications | |
| |
| |
| |
Visual Basic and ActiveX | |
| |
| |
ActiveX: The Tools You Use | |
| |
| |
Building ActiveX Controls With VB | |
| |
| |
OLE Processing | |
| |
| |
Creating Inserted Objects | |
| |
| |
Inserting Existing Objects | |
| |
| |
ActiveX Documents | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Object Basics | |
| |
| |
The System Objects | |
| |
| |
Program Objects | |
| |
| |
Using Collections and Object Arrays | |
| |
| |
Introduction to OLE Automation | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Distributing Your Applications | |
| |
| |
Compiling Your Application | |
| |
| |
Setting Project Properties | |
| |
| |
Setting Up Your Application | |
| |
| |
Starting the Package And Deployment Wizard | |
| |
| |
Running Setup | |
| |
| |
Uninstalling the Application | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercises | |
| |
| |
| |
Online Visual Basic | |
| |
| |
Follow the Wizard to the Web! | |
| |
| |
Your Users Need an ISP | |
| |
| |
Using the Browser | |
| |
| |
Looking Through the Other Tools | |
| |
| |
Summary | |
| |
| |
QandA | |
| |
| |
Workshop | |
| |
| |
Quiz | |
| |
| |
Exercise | |
| |
| |
| |
Appendixes | |
| |
| |
| |
Operator Precedence | |
| |
| |
| |
Answers | |
| |
| |
Hour 1 Quiz | |
| |
| |
Hour 1 Exercise | |
| |
| |
Hour 2 Quiz | |
| |
| |
Hour 2 Exercise | |
| |
| |
Hour 3 Quiz | |
| |
| |
Hour 3 Exercises | |
| |
| |
Hour 4 Quiz | |
| |
| |
Hour 4 Exercises | |
| |
| |
Hour 5 Quiz | |
| |
| |
Hour 5 Exercises | |
| |
| |
Hour 6 Quiz | |
| |
| |
Hour 6 Exercises | |
| |
| |
Hour 7 Quiz | |
| |
| |
Hour 7 Exercises | |
| |
| |
Hour 8 Quiz | |
| |
| |
Hour 8 Exercises | |
| |
| |
Hour 9 Quiz | |
| |
| |
Hour 9 Exercises | |
| |
| |
Hour 10 Quiz | |
| |
| |
Hour 10 Exercises | |
| |
| |
Hour 11 Quiz | |
| |
| |
Hour 11 Exercises | |
| |
| |
Hour 12 Quiz | |
| |
| |
Hour 12 Exercises | |
| |
| |
Hour 13 Quiz | |
| |
| |
Hour 13 Exercises | |
| |
| |
Hour 14 Quiz | |
| |
| |
Hour 14 Exercises | |
| |
| |
Hour 15 Quiz | |
| |
| |
Hour 15 Exercises | |
| |
| |
Hour 16 Quiz | |
| |
| |
Hour 16 Exercises | |
| |
| |
Hour 17 Quiz | |
| |
| |
Hour 17 Exercises | |
| |
| |
Hour 18 Quiz | |
| |
| |
Hour 18 Exercises | |
| |
| |
Hour 19 Quiz | |
| |
| |
Hour 19 Exercises | |
| |
| |
Hour 20 Quiz | |
| |
| |
Hour 20 Exercises | |
| |
| |
Hour 21 Quiz | |
| |
| |
Hour 21 Exercises | |
| |
| |
Hour 22 Quiz | |
| |
| |
Hour 22 Exercises | |
| |
| |
Hour 23 Quiz | |
| |
| |
Hour 23 Exercises | |
| |
| |
Hour 24 Quiz | |
| |
| |
Hour 24 Exercise | |
| |
| |
| |
Using the CD-ROM | |
| |
| |
Windows 95/NT 4 Installation Instructions | |
| |
| |
System Requirements | |
| |
| |
Index | |