Visual Basic Concepts
General Principles of Component Design
This chapter and "Debugging, Testing, and Deploying Components" contain those topics that apply to all types of ActiveX components. These chapters provide necessary background for the in-depth treatment of component types in subsequent chapters.
This chapter begins with "Component Basics," a group of topics that explain key terminology and concepts of component design.
The rest of the topics in "General Principles of Component Design" and "Debugging, Testing, and Deploying Components" are organized according to the general sequence of development tasks for components:
- Determine the features your component will provide.
- Determine what objects are required to divide the functionality of the component in a logical fashion.
See "Adding Classes to Components."
- Design any forms your component will display.
- Design the interface — that is, the properties, methods, and events — for each class provided by your component.
See "Adding Properties and Methods to Classes," "Adding Events to Classes," "Providing Named Constants for Your Component," "Providing Polymorphism by Implementing Interfaces," and "Organizing Objects: The Object Model."
The remainder of the task-oriented topics are contained in "Debugging, Testing, and Deploying Components." In addition to the following development tasks, they cover distribution, version compatibility, and creating international versions of your component.
- Create the component project and test project.
- Implement the forms required by your component.
- Implement the interface of each class, provide browser strings for interface members, and add links to Help topics.
- As you add each interface element or feature, add code to your test project to exercise the new functionality.
- Compile your component and test it with all potential target applications.
Topics