Visual Basic Concepts
Control Creation Basics
If you're used to developing Visual Basic applications, the world of control creation may at first seem upside down and backward. Events flow in the opposite direction from what you're used to. Many properties you're used to setting as a consumer of controls are suddenly off limits. Focus is — well, we'll get to focus in due time.
In short, you're not the owner of an application any more — you're just a widget, a cog in somebody else's machine. Relax. Let things unfold naturally.
The topics in this section provide the basic facts and concepts you need to master this new way of thinking about controls.
The UserControl Object Introduces the UserControl object, which is the basis of all ActiveX controls created with Visual Basic. If you read no other topic, read this one.
Three Ways to Build ActiveX Controls Discusses the three models for building controls in Visual Basic, and their different purposes and requirements.
Two Ways to Package ActiveX Controls You can package your controls to be shared, or compile them into your executables.
Understanding Control Lifetime and Key Events If you're used to creating forms in Visual Basic, you'll need to adjust to a new set of key events, and new ideas of control lifetime.