Outline
Home
How To Program Visual Basic Control Creation Edition
What's New in Visual Basic 5.0
What’s new in the integrated development environment
New language features
Control Basics
What is an ActiveX control?
Your control’s interface
Your First Control
Setting up the IDE
Managing the Project
Control Designers
Testing the Control
Control Properties
Creating Property Procedures
Creating Custom Property Pages
Control Events
Creating Custom Events
Events of the UserControl Object
Control Methods
Creating Methods
Implementing Standard Methods
Utilizing Methods Supplied by the Extender object
Interacting with the Container
What Is A Container?
Using the Extender Object
Constituent Controls
Inherent Controls
Third-Party Controls
Locating Commercial Controls
User-Drawn Controls
Graphics Methods
The Paint Event
The Refresh Method
Displaying Your Control as Disabled
Displaying the Default Property
Showing Your Control Has the Focus
Window Dressing
Giving Your Control a Transparent Background
Design time, run time, read-only properties
Permitting Your Control To Act as a Container
Implementing Access Keys
Controls that are invisible at runtime
Controls That Align to the Edges of Forms
Adding an About Box
Project templates
Adding a Toolbox Bitmap
Giving your control an Enabled property
Resource Files
Windows API and DLL Calls
Declaring DLL Calls
Example: Control that plays a sound
Using Resources
Example: Control that alters the menu
Distributing Your Controls
Compiling Your Control
Binary Compatibility
Project Properties
Testing Your Compiled Control In Microsoft Access
Using the Setup Wizard
Licensing
Localization
Registering and Unregistering Controls
Using Your Control On The Web
Crash Course on HTML and VBScript
Using the ActiveX Control Pad
Testing your control in a web browser
Making It Work with Netscape
Using the Setup Wizard in an Internet context
CAB Files and CODEBASE Tags
Safety considerations
Licensing Issues on the Web
Signing Your Code
Using Signcode to Sign your CAB File
Controls That Interact With the Internet
Asynchronous Download of Property Values
Internet Controls as Constituent Controls
Building an Email Control
Using Internet Explorer as a Constituent Control
Using the InternetExplorer Automation Object
Debugging and Error-Handling
The Immediate Window
Breakpoints
Using Option Explicit
The Locals Window
Monitoring Expressions Using Watches
Using Assertions
Writing Error-Handlers
The Err Object
Raising Errors
Object-Oriented Programming
Object-Oriented Concepts
Classes
Collections
Creating a Collection Class
Incorporating a Class in a Control
Building Interfaces Using the Implements Keyword
Using Friend Methods
Database Access
Visual Basic Data Access
Using a Microsoft Access Database
Other Data Sources Accessible to the Data Control
More Choices: Using Open Database Connectivity
Data-Aware Controls In Visual Basic
How Database Access Works
Properties of Data-Aware Controls
Providing Data Awareness in Your ActiveX Control