Sams Teach Yourself Visual Basic 6 in 21 Days.pdf

(10603 KB) Pobierz
Sams Teach Yourself Visual Basic 6 in 21 Days - Table of Contents
To access the contents, click the chapter and section titles.
Sams Teach Yourself Visual Basic 6 in 21 Days
(Publisher: Macmillan Computer Publishing)
Author(s): GREG PERRY
ISBN: 0672313103
Publication Date: 08/13/98
Search this book:
Day 1—Welcome to Visual Basic
Visual Basic’s Background
Visual Basic’s Visual Nature
Why Write Programs?
The Programming Process
Understanding Program Maintenance
Creating Your First Program
Event-Driven Programming
Summary
Q&A
Workshop
Quiz
Exercise
Day 2—Working with Visual Basic
Understanding the Visual Basic Environment
The New Project Window
The Toolbar
The Toolbox
The Form Window
77044145.010.png 77044145.011.png 77044145.012.png 77044145.013.png 77044145.001.png 77044145.002.png 77044145.003.png 77044145.004.png 77044145.005.png
The Form Layout Window
The Project Window
The Properties Window
Getting Help
Receiving Local Help
Getting Technical Support
Getting Online Help
Getting Used to the Screen
Creating an Application from Scratch
Setting Up the Form
Adding the Details
Finalizing with Code
Summary
Q&A
Workshop
Quiz
Exercise
Day 3—Managing Controls
Studying Controls
The Form’s Properties
The Pointer Tool
The Label Control
The Text Box Control
The Command Button Control
The Image Control
Control Focus
Event Procedures
Common Control Events
Writing Event Procedures
Using Bonus Projects
Summary
Q&A
Workshop
Quiz
Exercises
77044145.006.png
Bonus Project 1—Controls, Properties, and
Events
The Visual Elements
Adding the Code
Analysis
Day 4—Creating Menus
Using the Application Wizard for Menus
Learning About Menus
Introducing the Menu Editor
Working with the Menu Editor
Test the Menu
Adding a Pull-Down Menu
Add Three Checked Options
Completing the Menu’s Message Submenu
Finalize the Menu with Code
Summary
Q&A
Workshop
Quiz
Exercises
Day 5—Analyzing VB Data
A Few Preliminaries
Working Inside the Code Window
The Data in Visual Basic
Numeric Data
The Remaining Data Types
Working with Variables
Declaring Variables
Declaring Strings
Using Variable Storage
Visual Basic’s Operators
Analyzing the Order of Operators
Summary
Q&A
Workshop
77044145.007.png
Quiz
Exercises
Bonus Project 2—Variables and Expressions
Analysis
Day 6—Controlling Programs
Conditional Operators
Conditional Data
Combining Conditional Operators with Logical
Operators
The If Statement Uses Conditional Operators
Completing the If with Else
An Early Exit
Nesting If...Else Statements
Selecting with Select Case
Repeat Code with Loops
The Do Loop
For Loops
Modifying the Step Value
Nesting For Loops
Summary
Q&A
Workshop
Quiz
Exercises
Day 7—Advanced Keyboard and Screen
Support
Introduction to Internal Functions
Let the User Respond with MsgBox()
Using Named Constants
Triggering Default Buttons
Specifying the Icon
Getting Input with InputBox()
Handling the Keyboard
Keyboard-Triggered Events
Sending Keystrokes from Your Program
77044145.008.png
Prioritizing Responses
Additional Controls
Check Boxes
Option Buttons
Group Options with the Frame Control
Summary
Q&A
Workshop
Quiz
Exercises
Bonus Project 3—User Input and Conditional
Logic
Creating the Initial Form
The Startup Form’s Analysis
Creating the Check Box Form
The Check Box Form’s Analysis
Creating the Option Button Form
The Option Button Form’s Analysis
Week 1—In Review
Day 8—The Nature of VB Programs
Mastering Program Structure
Calling General Procedures
Private and Public Procedures
Variable Scope
Passing Data
By Reference and By Value
How Function Procedures Differ
Passing Controls as Arguments
Internal Functions
The Numeric Functions
Data Type Functions
The String-Related String Functions
77044145.009.png
Zgłoś jeśli naruszono regulamin