Creating .NET Components

In programming, the term component is generally used for an object that is reusable and can interact with other objects. The .NET Framework enables you to create components in several different ways:

  • By deriving from the Component class, which belongs to the System.ComponentModel namespace. This technique is used to create those components that are used to control external resources such as an event log, or to provide a design-time interface such as the one supplied by the System.Windows.Forms.Timer component. These objects generally don't have any runtime user interface.

  • By deriving from the Control class of the System.Windows.Forms namespace. This technique is used to create the control that provides user interface capabilities. ...

Get Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) 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.