MCSD:Visual Basic 5学习指南:英文原版

MCSD:Visual Basic 5学习指南:英文原版
作 者: Michael McKelvy
出版社: 电子工业出版社
丛编项: 微软认证的软件开发专家考试系列丛书 MCSD学习指南系列
版权说明: 本书为公共版权或经版权方授权,请支持正版图书
标 签: BASIC语言
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

暂缺《MCSD:Visual Basic 5学习指南:英文原版》作者简介

内容简介

美国SYBEX公司授权出版。

图书目录

Table of Contents

Introduction

Part I Review of Basic Concepts

Chapter Creating an Application wih Forms and Controls

Review of Form and Control Basics

Working With Properties

Writtig Code for Evedts

Design Cojsiderations

Creadtig Applications with Multiple Forms

Displaying Forms in a Program

Using Varlables to Manipulate Forms

Creating MDI Applications

Events in a Form

Events Occurring when a Form Loads

Events Occurring whe a Form is Unloaded

Control Events

Extending Forms through Custom Properties and ethods

Creating a Property in a Form

Creating a Method in Form

Creating a Method in a Form

Summary

Review Questions

Chapter 2 Basics of Writing Visual Basic Code

A Review of Variables

Comparison of Variables and Constantas

Understanding Data Ytpes

Declaring Variables

Forcint Variable Declaration

Declaring Specific Variable Types

Scope of Variables

Setting the Scope of Varialbes

Review of Procedures

Types of Procedur

Creating and Calling Procedures

Passing Argummets to a Procedure

Using Arguments

Using Optional Arguments

Passing Arrays to a Procedure

Calling Procedures

Calling Sub Procedures

Calling Functions

Summary

Review Questions

Chapter3 Creating User Interfaces with Windows Common Controls

Keepign the User Informed

Creating a Status Bar for Your rogram

Working With The ProgressBar

Setting Up the Imagelist Control

Working in ter Design Environment

Adding adn Deletin Imageswith Cde

Accessing Functions with Toolbars

Creating Buttons for the Toolbar

Running Functions with the Toolbar

Displaying Data with the TreeView Control

Setting Up the Tree View Control

Creating the Nodes of the Tree

Displaying Data in a List

Setting Up the Control

Setting Up the Headings for Columns

Adding Data to the LisView Control

Summary

Review Questions

Chapter4 Creating Menus for Your Programs

Creating a Menu System

Designing the Menu

Creating the Menu with the Menu Editor

Adding Shortcut adn Acces Keys to Menu Items

Othe Menu Ite Properties

Pop-Up Menus

Creating the Menu for teh Pop-Up

Activating teh Pop -Up Menu

Modifying Menus at Run-Time

Changing Menu Item Properties

Enabling Menu Items in Response to Program State

Adding Menu Items at Run-Time

Adding Items for Mdi child Forms

Using Menu Item Arrays

Summary

Review Questions

Chapter5 Advanced Design Features

Creating Drag-and-Drop Applications

Drag-and-Drop within the Application

Drag-and -Drop between Applications

Chandging Forms on the Flhy

Control Array Basics

Creating an Enhanced Message Box

Summary

Review Questions

Chapter6 Working with Collections

Understanding collections

Using teh Methods of a Collection

Working with the Properties of a Collection

Working with theForms Collection

Working With the Collection Methods

Using the For ...Each Loop

Working wiht the Controls Collection

Understanding the Difference Between Control Arrays and the Controls Collection

Making Global changes to Controls

Working with Specific Controls in the Collection

Summary

Review Questions

Chapter7 Creating Classes in a Program

Understanding Classes in Visual Basic

Uses of Classes

Creating a Class

Setting Up the Class Module

Creating the Properties of a Class

Creating Methods of the Class

Creating Events for teh Class

Using teh Friend Declaration

Creating Classes with the Class Buider

Creating the Base Class

Creating teh Child Classes

Creating teh Classes for the Project

Definging the Scope of the Class

Public and Private Classes

Setting teh Instancing Property

Using a Class in a Program

Creating an Instance of teh Class

Accessing the Propertie and Methods of tthe Class

Destroying thd class Instance

Summary Review Questions

Part II Creating Database Applications

Chapter8 Accessing Data with the Data Control

Setting Up the data Control

Basic Setup

Connecting to Non-Jet Databases

Working with Different Recordset Ytpes

Othe Key Properties of the Data Control

Assigning Recordsets Created with DAO

Binding Controls to the Data Control

What the Controls Can Do

Using simple Data Bound Controls

Working With Lists and Combo Boxes

Beyond Editing

Adding adn Deleting Records with the Data Control

Finding Specific Records

Workign with Grids

Displaying Data with MSFlexGrid

Editing Data With DBGrid

Summary

Review Questions

Chapter9 Creating Programs with the Data Access Objects

Understandign the Data Access Objdects

Creating a Recordset with Code

Opning a Database

Openign teh Recordset

Displaying Teh Data fromn a Recordset

Record Navigation and Manipulation

Movign through the Recordset

Adding adn Editing Records

Deleting Records

Finding Specific Records

Using the Find Method

Using the Seek Method

Alternatives to the Fid adn Seek Methods

Summary

Review Questiojs

Chapter10 Working with Remote Data

Remote Data Fudamentals

Whts Is ODBC?

Linking to an OdBC Data Source

Working with the Remote Data Conrtol

Setting Up the Remote Data Control

Binding teh RDC to Cotrols

Using Remote Data Objects

Key Objects of teh RDO Model

Creating a Resultset

Displayign Data with RDO

Summary

Review Questions

Part III Communicating with Other Programs

Chapter11 Using ActiveX Servers

Why Use ActiveX Servers?

What Is an ActiveX Server?

What is the Benefit of Using a Server?

Creating an ActiveX Server

Displaying a Form fro a Class

Testing the Server components

Compiling the Server

Runnign Asynchronous Processes

Setting Up the Server for Asynchronous Operation

Setting Up the Client for Asynchronus Operation

Summary

Review Questions

Chapter12 Creating ActiveX Client Applications

ActiveX Client Fundamentals

Understandign Object Modeis

Creating Objects in a Program

Destroying an Instance of an Object

Creating a Client for Microsoft Programs

Working with Microsoft Word

Linking Your Program to Microsoft Outllok

Summary

Review Questions

Part IV Extending teh Capabilities of Visual Basic

Chapter13 Declarign and Using External Functions

What Are DLLs?

Declaring DLL Routines

Setting Up A Declaraton Statement

Going by Another Name

Calling DLL Routines from Your Program

Basic Procedure Calls

Creating a DLL Routine

Creating an ActiveX DLL Project

Compiling an ActiveX DLL

Using the DLL in Other Programs

Summary

Review Questions

Chapter14 Creating ActiveX Controls with Visual Basic

Control Creation Basics

Creating an ActiveX control

Starting the Project

Adding Constiuent Controls

Creating teh Controls Interface

Developing a Property Page

Setting Up the Property Page Wizard

Saving Developer Information for the Control

Saving teh Developer Inforation

Retrieving Property Settings

Testing the ActiveX Control

Using the ActiveX Control

Compiling the Control

Working wiht the Control in Visual Basic

Using teh Control in a Web Page

Summary

Review Questions

Part V Integarting Visual Basic With teh Internet

Chapter15 Writing Internet Applications With Visual Basic

Introduction to the Internet

Viewing HTML Paes for a Visual Basic Program

Setting U the Web Browser Control

Navigating Between Web Pagers

Working with Web Browser Events

Creating a connection to the Internet

Setting Up the Internet Transfer Control

Retrieving Data With The Internet Transfer Control

Summary

Review Questions

Chapter16 Creating and Using ActiveX Documents

Understandign ActiveX Documents

Advantages of Using Activex Documents in

Internet Progras

Comparison of ActiveX Documets to Visual Basic

Forms and ActiveX controls

Creating ActiveX Documents

Creating ActiveX Documnts

Creatign The ActiveX Document Project

Working with Multiple documets

compiling and Distributing ActiveX Documents

Automatically Creating ActiveX Documents

Using ActiveX Documents Diredtly

Embedding ActiveX Documents in a Web Page

Summary

Review Questions

Part VI Debugging and Error Hand ling

Chapter17 Handling Errors in Visual Basic Programs

Understanding Errors

Causes of Errors

Avoiding Errors

Working With Teh Err Object

Using the Properties of the Err Object

Using the Methods of the Err Object

displaying Errors Using the Err Object

Trapping Errors in Your Program

Defining the Error Hand ling Staemets

Deferred Handling of Errors

Immediate Handling of Errors

Creating a Common Error Hand ling Procedure

Raising Erros from Your Program

Displaying Errosrs during Testing

Summary

Review Questions

Chapter18 Debugging Your Application

Techniqes for Debugging

Checking Out Visual Basic's Debugging Tools

Tools for Avoiding Errors

How the Environment Finds Errors for You

Observing the Values of Variables

Working with the Watch Windows

Using teh Immediate Wihdow to Check or change a Value

Stepping Through teh Program

Stopping at a Specific Line of Code

Continuing the Program

Working With the Call Stack

Debugging Servers and Controls

Creating a Program Group

Executing the Dll or Control

Summary

Review Questions

Part VII Distributing Your Application

Chapter19 compiling Your Visual Basic Program

Choosing the Correct Options

What Is P-code?

deciding between P-code and Native Code

Native Code Compiler Options

Compiling Only Parts of the Program

What is Conditional compilation?

Determing What to Compile

Creating the Executable File

Summary

Review Ques tions

Chapter20 Adding Help to Your Application

Help Basics

Help Components

CharaCteristics of Good Help Files

Getting Help with F1

Determining Whcih Help File to Use

context Sensitive Help

Displaying Help with the CommonDialog

Displaying Helop Contents

Displyaing the Help Index

Creating Help Files

Using the Help Workshop and a Word Processor

Using Other Help Products

Other Ways of Providing Help

Summary

Review Questions

Chapter21 Distributing Your Applications

Creating Setup Programs

creating Setup disks for Standard Programs

Creating Setu Disks for ActiveX Servers

Modifying Setu Information

Working with the Windows Registry

Understandig the Registry

Registering Components

Working With Application Specific Information

Summary

Review Questions

Appendices

Appendix A Answers Review Questieon

Appendx B Glossary of Terms