This documentation is archived and is not being maintained.

Custom Control Painting and Rendering

Custom painting of controls is one of the many complicated tasks made easy by the .NET Framework. When authoring a custom control, you have many options regarding your control's graphical appearance. If you are authoring a control that inherits from the Control Class, you must provide code that allows your control to render its graphical representation. If you are creating a user control by inheriting from the UserControl Class, or are inheriting from one of the Windows Forms controls, you may override the standard graphical representation and provide your own graphics code. If you want to provide custom rendering for the constituent controls of a UserControl you are authoring, your options become more limited, but still allow a wide range of graphical possibilities for your controls and applications.

In this Section

User-Drawn Controls
Gives an overview of the steps involved in writing and overriding rendering code for your control.
Constituent Controls
Describes how to implement custom rendering code for constituent controls in your user controls and forms.

Related Sections

Creating Graphical Images with GDI+
Introduces GDI+ graphics functionality from a Visual Studio perspective and gives links to more information.
Control Authoring for Windows Forms
Provides links to topics about creating your own custom control.