9. Components
PACKAGING CODE into classes is an effective way to promote code reuse and save coding effort. VS05 and the Windows Forms Designer take this one step further by providing an infrastructure that trades a programmatic experience for a declarative one, enabling you to drag a class from the Toolbox onto a form and configure it using a host of Windows Forms Designer features, including the Properties window to set properties and manage event handlers. It takes a special type of class known as a component to use such support.
This chapter defines what components are, the capabilities they possess, and the ways in which you can use them, customize them, or create your own.
Components Defined
A component is a class that implements the ...
Get Windows Forms 2.0 Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.