Step-by-Step, Visual BASIC 5.0: Complete Course, Text with 3.5

Step-by-Step, Visual BASIC 5.0: Complete Course, Text with 3.5" Data Disk

Other Format(BK&DISK)

$75.50

Product Details

ISBN-13: 9780028030630
Publisher: McGraw-Hill Companies, The
Publication date: 08/17/1998
Edition description: BK&DISK
Product dimensions: 7.90(w) x 9.90(h) x 0.92(d)

Table of Contents

1 Introduction
1(40)
What Is BASIC and What Is BASIC Good For?
2(4)
What is Visual Basic?
3(1)
What is Visual Basic Useful For?
3(1)
How Do You Develop an Application in Visual Basic?
4(2)
A Simple Example
6(6)
The Form Layout Window
7(2)
The Form Window
9(3)
Expanding Upon Our Simple Program
12(11)
Drawing a Control
12(2)
The Menu and ToolBar
14(3)
The Properties Window
17(5)
The Project Explorer Window
22(1)
Other Windows
23(1)
Saving Your Work
23(1)
Making Everything Functional
23(11)
The Exit Button
25(2)
Printing Your Project
27(6)
Making an .EXE File
33(1)
One Last Word of Advice: Who Are You?
34(1)
Review
35(6)
Summary
35(2)
Exercises
37(4)
2 The Structure of Visual Basic
41(40)
What Products Can Visual Basic Produce?
42(5)
What Is the Production Process Like?
43(1)
Objects
44(1)
Code
44(3)
Printing Using a TextBox
47(5)
The Assignment Statement
47(2)
Variable Types
49(3)
Operators
52(19)
Arithmetic Operators
52(1)
String Operators
53(8)
Comparison Operators
61(1)
Logical Operators
61(3)
Order of Precedence
64(4)
Functions
68(1)
Expressions
69(1)
Program Lines
69(2)
Review
71(10)
Summary
71(6)
Exercises
77(4)
3 Building a Real Program
81(42)
An Overview of an Address-Book Program
82(4)
Creating the Address-Book Form
82(4)
Revising the Form
86(15)
CheckBoxes
86(2)
The E-Mail CheckBox and TextBox
88(5)
The Bare Minimum If/End If Clause
93(2)
The Else Clause
95(1)
The ElseIf Clause
96(2)
Nested Statements
98(2)
Pretty Printing
100(1)
Two Different Meanings of the Equal Sign
101(3)
Compound Conditions
103(1)
Programming Tools and Techniques
104(8)
Structured Programming and Program Structures
104(2)
OptionButtons and Frames
106(6)
Human-Interface Considerations
112(3)
Some Observations and Rules
112(3)
Review
115(8)
Summary
115(4)
Exercises
119(4)
4 Wiring the Form to a Database
123(38)
What Is a Database?
124(3)
Scalability
125(1)
Front End and Back End
126(1)
The Jet Engine and the Visual Data Manager
127(10)
Why Use Text Fields?
130(1)
Setting Up the Database
131(6)
Hooking the Address Book to the Database
137(12)
Adding and Saving Records
140(1)
Getting the Last Name into the Program
140(6)
Making the FAX and E-Mail TextBoxes Work
146(2)
What If the Program Doesn't Run?
148(1)
Review
149(12)
Summary
149(3)
Exercises
152(4)
Project 1: Designing a Form
156(5)
5 MDI Forms
161(38)
What's an MDI Form, and Who Needs It?
162(3)
The MDI Form: The Address-Book Form's Parent
165(25)
Adding the MDI Form to the Project
165(5)
Adding the MDI Form Code
170(9)
The Record Counter
179(3)
Programming the Find Button
182(7)
Programming the Exit Button
189(1)
Review
190(9)
Summary
190(5)
Exercises
195(4)
6 Menus
199(50)
Menu Design and Set-Up
200(4)
Menus Versus Buttons
200(1)
Menu Structure
200(1)
The Menu Design for the Address-Book
201(3)
The Menu Editor
204(7)
The Menu Editor and Its Relationship to an Outliner
205(2)
Back to the Menu Editor
207(2)
Working With the Menu Editor
209(2)
Coding the Address-Book MenuChoices
211(7)
Coding the Menu Using the Existing Button Code
211(7)
The Structure of Visual Basic
218(16)
A Quick Review of Parts of Chapter 2
218(1)
Secrets of the Project (.VBP) and Form (.FRM) Files
218(16)
Scope
234(8)
The Different Scope Levels Available in Visual Basic
234(6)
Some Last Words About Scope
240(2)
Review
242(7)
Summary
242(3)
Exercises
245(4)
7 Printing
249(36)
Printing Your Work
250(10)
PrintForm
250(1)
The Printer Object
251(9)
The For/Next Loop
260(10)
Printing All Records
261(7)
Multiple Copies: The Ugly Way to Do It
268(2)
The CommonDialog Control
270(7)
The CommonDialog Print Dialog Box
271(6)
Review
277(8)
Summary
277(5)
Exercises
282(3)
8 Working with Strings
285(44)
Improving Add-a-Record Functionality
286(12)
Modifying the Existing Subroutine to Accept the Last-Name Function
288(1)
Modifying the InputBox Function
289(1)
Creating the Stub Function for GuessLastName
290(1)
Subs versus Functions
290(1)
User-Defined Functions
291(1)
Some Finishing Touches for cmdAddNew_Click
292(6)
Working With Names
298(3)
Let Me Count the Ways
298(3)
String Manipulation Tools
301(5)
Putting Together GuessLastName
305(5)
Parsing txtName.Text: Part 1
305(2)
Parsing txtName.Text: Part 2
307(1)
Parsing txtName.Text: Part 3
307(3)
Do/Loops Revisited
310(3)
Nested Loops
311(2)
Explicitly Naming and Type-ing Variables
313(2)
Review
315(14)
Summary
315(4)
Exercises
319(3)
Project 2: Defining the Start Up Form
322(7)
9 The Edit Menu
329(42)
Understanding and Implementing Undo
330(19)
A Really Simple Example of Undo
330(4)
Variable Scope Local and Public Variables Redux
334(3)
Undoing Undo
337(4)
Undoing It in Both TextBoxes
341(2)
Getting Ready to Undo It in the Address-Book
343(6)
Implementing Cut, Copy, and Paste
349(12)
The SelText Property
349(1)
Implementing Internal Cut, Copy, and Paste Commands
350(21)
Review
361(1)
Summary
361(6)
Exercises
367(4)
10 CommonDialog Control I
371(40)
Backing Up
372(3)
How to Back Up Your Work
373(1)
How to Back Up the User's Address-Book Database
373(2)
CommonDialog Control Redux
375(9)
Using CommonDialog for the Back Up and Save Buttons
375(1)
Adding the Back Up and Save Buttons to the Form
375(1)
Coding the Buttons
376(8)
Finishing Up the Open Button
384(19)
Making the Sample Code Do What You Want
384(16)
Implementing the File Open
400(3)
Review
403(8)
Summary
403(5)
Exercises
408(3)
11 CommonDialog Control II
411(40)
The Back Up CommandButton
412(15)
Reworking the Open Button Code
412(6)
Using FileCopy in the Program
418(1)
Some Details
419(8)
Programming the Create-a-New-Address-Book MenuChoice
427(7)
Changing the Code to Save the Backup Copy
427(3)
Protecting the Blank Database File
430(3)
Leaving a Single Record in the Blank Database
433(1)
Recoding to Avoid Causing Problems for C Programmers
434(9)
Finished Touches
437(6)
Review
443(8)
Summary
443(5)
Exercises
448(3)
12 SplashScreens
451(60)
A SplashScreen
452(14)
Coding the SplashScreen: Phase 1
457(5)
Getting and Storing Real-User Information
462(1)
Creating the File in the Notepad and Reading It Into the SplashScreen: Phase 2
462(4)
The Different Types of Files that Visual Basic Can Use
466(28)
Sequential Data Processing
466(2)
Creating the User-Information File: Phase 3
468(6)
Requiring the UserName
474(1)
Omitting the CompanyName Code
474(1)
Validating the Serial Number
474(19)
One Last Thing
493(1)
Review
494(17)
Summary
494(8)
Exercises
502(4)
Project 3: Adding MenuBar Items
506(5)
13 Advanced Topics
511(38)
Two-Letter State Abbreviations
512(5)
The ListBox
512(1)
The ComboBox
513(1)
Factors to Consider in Choosing a ListBox or a ComboBox
513(1)
A ComboBox versus DBCombo
514(1)
Installing the ComboBox in the Address-Book Form
514(3)
Creating a Random-Access File
517(11)
Creating a Random-Access File: Part 2
518(10)
Array Variables
528(6)
Preparing a File With the Names and Abbreviations of the States
528(2)
The Longest 'State Name'
530(1)
Multidimensional Array Variables
531(1)
Array Bounds
532(2)
User-Defined Variables
534(8)
Using a User-Defined Variable to Set Up a Mini-Help System
537(3)
The Resource Hog Solution
540(2)
Review
542(7)
Summary
542(4)
Exercises
546(3)
14 Help!
549
Finding and Installing HCW
550(7)
Finding HCW in Visual Basic's Program Files
550(1)
Finding HCW on the Internet
551(1)
Installing HCW
552(5)
The Help in HCW
557(7)
Startup Tips
557(1)
ToolTips
557(1)
Contextual Help
558(4)
Training-Card Help
562(2)
ToolTips: Help Without Using WinHelp
564(3)
The ToolTip for the ExitOpen Button
564(1)
Finishing the ToolTips
565(2)
Why Use WinHelp?
567(18)
The Structure of WinHelp in a Visual Basic Application
567(1)
A Simple Example
568(3)
Factors to Consider When Writing Help-Document Content
571(10)
Adding HyperGraphics to the Help File
581(4)
Using the Help Workshop
585(12)
Creating the Help Files's Table of Contents
585(3)
Creating the Help Project File
588(7)
One Final Thought
595(2)
Review
597
Summary
597(2)
Exercises
599(3)
Project 4: Using ComboBoxes
602

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews