Defines the base class for controls, which are components with visual representation.
Object
MarshalByRefObject
MarshalByRefComponent
Control
[Visual Basic] Public Class Control Inherits MarshalByRefComponent Implements IWin32Window [C#] public class Control : MarshalByRefComponent, IWin32Window [C++] public __gc class Control : public MarshalByRefComponent, IWin32Window [JScript] public class Control extends MarshalByRefComponent, IWin32Window
This class implements very basic functionality required by classes that display to the user. It handles user input through the keyboard and pointing device. It handles message routing and security. It defines the bounds of a control-- its position and size-- although it does not implement painting. It provides a window handle (hWnd).
You do not typically inherit from this class. Within the WinForms, only RichControl inherits from Control.
Namespace: System.WinForms
Assembly: System.WinForms.dll