Control Class
A base class from which other forms controls classes are derived.
Namespace: elsystem.windows.forms
Properties
Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).
Name | Type | Description | |
Anchor | enum | Gets or sets the boundary of the parent container to which the control is anchored. See AnchorStyles for a list of possible values. | |
AutoSize | bool | True indicates that the control that is inherited from this class should resize itself based upon its contents. | |
BackColor | object | Gets or sets the background Color of a control. | |
BackgroundImage | object | Gets or sets the background Image displayed in the control. | |
BackgroundImageLayout | enum | Gets or sets how the BackgroundImage is oriented in the control. See ImageLayout for a list of values. | |
CanFocus | bool | True indicates that the control can receive focus. | |
ContainsFocus | bool | True if the control, or one of its child controls, currently has the input focus. | |
ControlLocation | object | Gets or sets the position of a control as a Point object. | |
Controls | object | Gets a collection of Control objects. | |
Dock | object | Gets or sets how a control is docked. See DockStyle for a list of values. | |
EffectiveBackColor | object | Gets the back Color actually being used. | |
EffectiveForeColor | object | Gets the fore Color actually being used. | |
Enabled | bool | Gets or sets a value indicating if control can respond to user interaction. | |
Focused | bool | True if the control has input focus. | |
Font | object | Gets of sets the Font used to display text for a control. | |
ForeColor | object | Gets or sets the foreground Color of a control. | |
Height | int | Gets or sets the height of a control. | |
Margin | object | Gets or sets the space between controls. See Padding. | |
Padding | object | Gets or sets Padding within the control. | |
RightToLeft | enum | Gets or sets the text plotting direction. See RightToLeft for a list of values. | |
TabIndex | int | Gets or sets the tab order of the control within its container. | |
TabStop | bool | True indicates that the user can give the focus to this control using the TAB key. | |
Tag | object | Gets or sets an arbitrary object value that can be used to store custom information about a control. | |
Text | string | Gets or sets the text displayed in a control. | |
UseTheme | enum | Gets or sets the theme mode. See UseThemeMode for a list of values. | |
UseWaitCursor | bool | True to use the wait cursor for the current control and all child controls. | |
Visible | bool | Gets or sets a value indicating if control and its child controls are displayed. | |
Width | int | Gets or sets the width of a control. |
Methods
Name | Description | |
BringToFront() | Brings the control to the front of the z-order. | |
FindForm() | Returns the form object in which the control is inserted or null if not inserted in any form. | |
Focus() | Gives input focus to the control. Returns true if the control successfully received input focus. | |
GetParent() | Gets the parent object of a control. | |
Location(x,y) | Sets the x,y position of the control within its container. | |
PointToClient(p) | Computes the location of the specified screen Point into client coordinates. | |
PointToScreen(p) | Computes the location of the specified client Point into screen coordinates |
Events
Name | Description | |
Click |
Occurs when the control is clicked. |
|
GotFocus |
Occurs when the control receives focus. Not all controls support the GotFocus event. Note: Do not attempt to set the focus within GotFocus or LostFocus event handlers. |
|
LostFocus |
Occurs when the control loses focus. Not all controls support the LostFocus event. Note: Do not attempt to set the focus within GotFocus or LostFocus event handlers. |
|
MouseClick |
Occurs when the control is clicked by the mouse. See: MouseEventArgs. |
|
MouseEnter |
Occurs when the mouse pointer enters the control. |
|
MouseLeave |
Occurs when the mouse pointer leaves the control. |
|
VisibleChanged |
Occurs when the value of the Visible property changes. |
Inheritance Hierarchy
elsystem.windows.forms.ELWFComponent
elsystem.windows.forms.Control