Creating Your Own Controls

If none of the stock .NET controls meets your specific needs, you can create your own controls for use on a Windows Form in three ways:

• You can subclass an existing control and modify or extend its behavior and appearance.

• You can create a user control by compositing together two or more existing controls.

• You can create a custom control from scratch, implementing your own visuals and behavior.

Get Microsoft® Visual Studio® 2010 Unleashed 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.