October 2003
Intermediate to advanced
736 pages
15h 25m
English
A component is a class that implements the IComponent interface from the System.ComponentModel namespace. How to implement IComponent is covered in Chapter 9: Design-Time Integration, but any class that implements IComponent becomes a component and can thereafter be integrated with a component hosting environment, such as VS.NET. In VS.NET this integration means that the component can show up on the Toolbar, can be dropped onto a design surface (such as a Form), and can have public properties set and public events consumed in the Property Browser.
The chief difference between a control and a component is the location where the interaction with the user occurs (if there is an interaction with the user). A control ...