Control Methods
The methods of the Control class are listed here. For a complete list of Control class members, see the Control Members topic.
Public Methods
BeginInvoke | Overloaded. Executes a delegate asynchronously on the thread that the control's underlying handle was created on. |
BringToFront Supported by the .NET Compact Framework. | Brings the control to the front of the z-order. |
Contains | Retrieves a value indicating whether the specified control is a child of the control. |
CreateControl | Forces the creation of the control, including the creation of the handle and any child controls. |
CreateGraphics Supported by the .NET Compact Framework. | Creates the Graphics object for the control. |
CreateObjRef (inherited from MarshalByRefObject) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
Dispose (inherited from Component)
Supported by the .NET Compact Framework. | Overloaded. Releases the resources used by the Component. |
DoDragDrop | Begins a drag-and-drop operation. |
EndInvoke | Retrieves the return value of the asynchronous operation represented by the IAsyncResult object passed. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
FindForm | Retrieves the form that the control is on. |
Focus Supported by the .NET Compact Framework. | Sets input focus to the control. |
![]() FromChildHandle | Retrieves the control that contains the specified handle. |
![]() FromHandle | Returns the control that is currently associated with the specified handle. |
GetChildAtPoint | Retrieves the child control that is located at the specified coordinates. |
GetContainerControl | Returns the next ContainerControl up the control's chain of parent controls. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetLifetimeService (inherited from MarshalByRefObject) | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetNextControl | Retrieves the next control forward or back in the tab order of child controls. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
Hide Supported by the .NET Compact Framework. | Conceals the control from the user. |
InitializeLifetimeService (inherited from MarshalByRefObject) | Obtains a lifetime service object to control the lifetime policy for this instance. |
Invalidate Supported by the .NET Compact Framework. | Overloaded. Invalidates a specific region of the control and causes a paint message to be sent to the control. |
Invoke Supported by the .NET Compact Framework. | Overloaded. Executes a delegate on the thread that owns the control's underlying window handle. |
![]() IsMnemonic | Determines if the specified character is the mnemonic character assigned to the control in the specified string. |
PerformLayout | Overloaded. Forces the control to apply layout logic to child controls. |
PointToClient Supported by the .NET Compact Framework. | Computes the location of the specified screen point into client coordinates. |
PointToScreen Supported by the .NET Compact Framework. | Computes the location of the specified client point into screen coordinates. |
PreProcessMessage | Preprocesses input messages within the message loop before they are dispatched. |
RectangleToClient Supported by the .NET Compact Framework. | Computes the size and location of the specified screen rectangle in client coordinates. |
RectangleToScreen Supported by the .NET Compact Framework. | Computes the size and location of the specified client rectangle in screen coordinates. |
Refresh Supported by the .NET Compact Framework. | Forces the control to invalidate its client area and immediately redraw itself and any child controls. |
ResetBackColor | Resets the BackColor property to its default value. |
ResetBindings | Resets the DataBindings property to its default value. |
ResetCursor | Resets the Cursor property to its default value. |
ResetFont | Resets the Font property to its default value. |
ResetForeColor | Resets the ForeColor property to its default value. |
ResetImeMode | Resets the ImeMode property to its default value. |
ResetRightToLeft | Resets the RightToLeft property to its default value. |
ResetText | Resets the Text property to its default value. |
ResumeLayout | Overloaded. Resumes normal layout logic. |
Scale | Overloaded. Scales the control and any child controls. |
Select | Overloaded. Activates a control. |
SelectNextControl | Activates the next control. |
SendToBack Supported by the .NET Compact Framework. | Sends the control to the back of the z-order. |
SetBounds | Overloaded. Sets the bounds of the control. |
Show Supported by the .NET Compact Framework. | Displays the control to the user. |
SuspendLayout | Temporarily suspends the layout logic for the control. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
Update Supported by the .NET Compact Framework. | Causes the control to redraw the invalidated regions within its client area. |
Protected Methods
AccessibilityNotifyClients | Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control. |
CreateAccessibilityInstance | Creates a new accessibility object for the control. |
CreateControlsInstance | Creates a new instance of the control collection for the control. |
CreateHandle | Creates a handle for the control. |
DefWndProc | Sends the specified message to the default window procedure. |
DestroyHandle | Destroys the handle associated with the control. |
Dispose Supported by the .NET Compact Framework. | Overloaded. Overridden. Releases all resources used by the Control. |
Finalize (inherited from Component)
Supported by the .NET Compact Framework. | Overridden. Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
GetService (inherited from Component) | Returns an object that represents a service provided by the Component or by its Container. |
GetStyle | Retrieves the value of the specified control style bit for the control. |
GetTopLevel | Determines if the control is a top-level control. |
InitLayout | Called after the control has been added to another container. |
InvokeGotFocus | Raises the GotFocus event for the specified control. |
InvokeLostFocus | Raises the LostFocus event for the specified control. |
InvokeOnClick | Raises the Click event for the specified control. |
InvokePaint | Raises the Paint event for the specified control. |
InvokePaintBackground | Raises the PaintBackground event for the specified control. |
IsInputChar | Determines if a character is an input character that the control recognizes. |
IsInputKey | Determines whether the specified key is a regular input key or a special key that requires preprocessing. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |
OnBackColorChanged | Raises the BackColorChanged event. |
OnBackgroundImageChanged | Raises the BackgroundImageChanged event. |
OnBindingContextChanged Supported by the .NET Compact Framework. | Raises the BindingContextChanged event. |
OnCausesValidationChanged | Raises the CausesValidationChanged event. |
OnChangeUICues | Raises the ChangeUICues event. |
OnClick Supported by the .NET Compact Framework. | Raises the Click event. |
OnContextMenuChanged | Raises the ContextMenuChanged event. |
OnControlAdded | Raises the ControlAdded event. |
OnControlRemoved | Raises the ControlRemoved event. |
OnCreateControl | Raises the CreateControl event. |
OnCursorChanged | Raises the CursorChanged event. |
OnDockChanged | Raises the DockChanged event. |
OnDoubleClick | Raises the DoubleClick event. |
OnDragDrop | Raises the DragDrop event. |
OnDragEnter | Raises the DragEnter event. |
OnDragLeave | Raises the DragLeave event. |
OnDragOver | Raises the DragOver event. |
OnEnabledChanged Supported by the .NET Compact Framework. | Raises the EnabledChanged event. |
OnEnter | Raises the Enter event. |
OnFontChanged | Raises the FontChanged event. |
OnForeColorChanged | Raises the ForeColorChanged event. |
OnGiveFeedback | Raises the GiveFeedback event. |
OnGotFocus Supported by the .NET Compact Framework. | Raises the GotFocus event. |
OnHandleCreated | Raises the HandleCreated event. |
OnHandleDestroyed | Raises the HandleDestroyed event. |
OnHelpRequested | Raises the HelpRequested event. |
OnImeModeChanged | Raises the ImeModeChanged event. |
OnInvalidated | Raises the Invalidated event. |
OnKeyDown Supported by the .NET Compact Framework. | Raises the KeyDown event. |
OnKeyPress Supported by the .NET Compact Framework. | Raises the KeyPress event. |
OnKeyUp Supported by the .NET Compact Framework. | Raises the KeyUp event. |
OnLayout | Raises the Layout event. |
OnLeave | Raises the Leave event. |
OnLocationChanged | Raises the LocationChanged event. |
OnLostFocus Supported by the .NET Compact Framework. | Raises the LostFocus event. |
OnMouseDown Supported by the .NET Compact Framework. | Raises the MouseDown event. |
OnMouseEnter | Raises the MouseEnter event. |
OnMouseHover | Raises the MouseHover event. |
OnMouseLeave | Raises the MouseLeave event. |
OnMouseMove Supported by the .NET Compact Framework. | Raises the MouseMove event. |
OnMouseUp Supported by the .NET Compact Framework. | Raises the MouseUp event. |
OnMouseWheel | Raises the MouseWheel event. |
OnMove | Raises the Move event. |
OnNotifyMessage | Notifies the control of Windows messages. |
OnPaint Supported by the .NET Compact Framework. | Raises the Paint event. |
OnPaintBackground Supported by the .NET Compact Framework. | Paints the background of the control. |
OnParentBackColorChanged | Raises the BackColorChanged event when the BackColor property value of the control's container changes. |
OnParentBackgroundImageChanged | Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes. |
OnParentBindingContextChanged | Raises the BindingContextChanged event when the BindingContext property value of the control's container changes. |
OnParentChanged Supported by the .NET Compact Framework. | Raises the ParentChanged event. |
OnParentEnabledChanged | Raises the EnabledChanged event when the Enabled property value of the control's container changes. |
OnParentFontChanged | Raises the FontChanged event when the Font property value of the control's container changes. |
OnParentForeColorChanged | Raises the ForeColorChanged event when the ForeColor property value of the control's container changes. |
OnParentRightToLeftChanged | Raises the RightToLeftChanged event when the RightToLeft property value of the control's container changes. |
OnParentVisibleChanged | Raises the VisibleChanged event when the Visible property value of the control's container changes. |
OnQueryContinueDrag | Raises the QueryContinueDrag event. |
OnResize Supported by the .NET Compact Framework. | Raises the Resize event. |
OnRightToLeftChanged | Raises the RightToLeftChanged event. |
OnSizeChanged | Raises the SizeChanged event. |
OnStyleChanged | Raises the StyleChanged event. |
OnSystemColorsChanged | Raises the SystemColorsChanged event. |
OnTabIndexChanged | Raises the TabIndexChanged event. |
OnTabStopChanged | Raises the TabStopChanged event. |
OnTextChanged Supported by the .NET Compact Framework. | Raises the TextChanged event. |
OnValidated | Raises the Validated event. |
OnValidating | Raises the Validating event. |
OnVisibleChanged | Raises the VisibleChanged event. |
ProcessCmdKey | Processes a command key. |
ProcessDialogChar | Processes a dialog character. |
ProcessDialogKey | Processes a dialog key. |
ProcessKeyEventArgs | Processes a key message and generates the appropriate control events. |
ProcessKeyMessage | Processes a keyboard message. |
ProcessKeyPreview | Previews a keyboard message. |
ProcessMnemonic | Processes a mnemonic character. |
RecreateHandle | Forces the re-creation of the handle for the control. |
![]() ReflectMessage | Reflects the specified message to the control that is bound to the specified handle. |
RtlTranslateAlignment | Overloaded. Converts the current alignment to the appropriate alignment to support right-to-left text. |
RtlTranslateContent | Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. |
RtlTranslateHorizontal | Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. |
RtlTranslateLeftRight | Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text. |
ScaleCore | Performs the work of scaling the entire control and any child controls. |
Select | Overloaded. Activates a control. |
SetBoundsCore | Performs the work of setting the specified bounds of this control. |
SetClientSizeCore | Sets the size of the client area of the control. |
SetStyle | Sets the specified style bit to the specified value. |
SetTopLevel | Sets the control as the top-level control. |
SetVisibleCore | Sets the control to the specified visible state. |
UpdateBounds | Overloaded. Updates the bounds of the control. |
UpdateStyles | Forces the assigned styles to be reapplied to the control. |
UpdateZOrder | Updates the control in its parent's z-order. |
WndProc | Processes Windows messages. |


