Control Class
A base class for all controls.
Notable Class Members
Properties
- Dock - Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.
- Enabled - Gets or sets a value indicating whether the control can respond to user interaction.
- Font - Gets or sets the font of the text displayed by the control.
- Height - Gets or sets the height of the control.
- Left - Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.
- Name - Gets or sets the name of the control.
- Size - Gets or sets the height and width of the control.
- Text - Gets or sets the text associated with this control.
- Top - Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area.
- Visible - Gets or sets a value indicating whether the control and all its child controls are displayed.
- Width - Gets or sets the width of the control.
Methods
- Focus() - Sets input focus to the control.
Events
- Click - Occurs when the control is clicked.
- EnabledChanged - Occurs when the Enabled property value has changed.
- GotFocus - Occurs when the control receives focus.
- LostFocus - Occurs when the control loses focus.
- TextChanged - Occurs when the Text property value changes.