System.Windows.Forms.Control Members

The members of System.Windows.Forms.Control are listed below.

See Also: Inherited members from System.ComponentModel.Component

Public Constructors

Initializes a new instance of the System.Windows.Forms.Control class with default settings.

Initializes a new instance of the System.Windows.Forms.Control class with specific text.

Initializes a new instance of the System.Windows.Forms.Control class as a child control, with specific text.

Initializes a new instance of the System.Windows.Forms.Control class with specific text, size, and location.

Initializes a new instance of the System.Windows.Forms.Control class as a child control, with specific text, size, and location.

Public Properties

[read-only]
AccessibilityObjectAccessibleObject.

Gets the System.Windows.Forms.AccessibleObject assigned to the control.

AccessibleDefaultActionDescriptionstring.

Gets or sets the default action description of the control for use by accessibility client applications.

AccessibleDescriptionstring.

Gets or sets the description of the control used by accessibility client applications.

AccessibleNamestring.

Gets or sets the name of the control used by accessibility client applications.

AccessibleRoleAccessibleRole.

Gets or sets the accessible role of the control

AllowDropbool.

Gets or sets a value indicating whether the control can accept data that the user drags onto it.

AnchorAnchorStyles.

Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.

AutoScrollOffsetSystem.Drawing.Point.

Gets or sets where this control is scrolled to in ScrollableControl.ScrollControlIntoView(Control).

AutoSizebool.

This property is not relevant for this class.

BackColorSystem.Drawing.Color.

Gets or sets the background color for the control.

BackgroundImageSystem.Drawing.Image.

Gets or sets the background image displayed in the control.

BackgroundImageLayoutImageLayout.

Gets or sets the background image layout as defined in the System.Windows.Forms.ImageLayout enumeration.

BindingContextBindingContext.

Gets or sets the System.Windows.Forms.BindingContext for the control.

[read-only]
Bottomint.

Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.

BoundsSystem.Drawing.Rectangle.

Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control.

[read-only]
CanFocusbool.

Gets a value indicating whether the control can receive focus.

[read-only]
CanSelectbool.

Gets a value indicating whether the control can be selected.

Capturebool.

Gets or sets a value indicating whether the control has captured the mouse.

CausesValidationbool.

Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.

static
CheckForIllegalCrossThreadCallsbool.

Gets or sets a value indicating whether to catch calls on the wrong thread that access a control's Control.Handle property when an application is being debugged.

[read-only]
ClientRectangleSystem.Drawing.Rectangle.

Gets the rectangle that represents the client area of the control.

ClientSizeSystem.Drawing.Size.

Gets or sets the height and width of the client area of the control.

[read-only]
CompanyNamestring.

Gets the name of the company or creator of the application containing the control.

[read-only]
ContainsFocusbool.

Gets a value indicating whether the control, or one of its child controls, currently has the input focus.

ContextMenuContextMenu.

Gets or sets the shortcut menu associated with the control.

ContextMenuStripContextMenuStrip.

Gets or sets the System.Windows.Forms.ContextMenuStrip associated with this control.

[read-only]
ControlsControl.ControlCollection.

Gets the collection of controls contained within the control.

[read-only]
Createdbool.

Gets a value indicating whether the control has been created.

CursorCursor.

Gets or sets the cursor that is displayed when the mouse pointer is over the control.

[read-only]
DataBindingsControlBindingsCollection.

Gets the data bindings for the control.

[read-only]
static
DefaultBackColorSystem.Drawing.Color.

Gets the default background color of the control.

[read-only]
static
DefaultFontSystem.Drawing.Font.

Gets the default font of the control.

[read-only]
static
DefaultForeColorSystem.Drawing.Color.

Gets the default foreground color of the control.

[read-only]
DisplayRectangleSystem.Drawing.Rectangle.

Gets the rectangle that represents the display area of the control.

[read-only]
Disposingbool.

Gets a value indicating whether the base System.Windows.Forms.Control class is in the process of disposing.

DockDockStyle.

Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.

Enabledbool.

Gets or sets a value indicating whether the control can respond to user interaction.

[read-only]
Focusedbool.

Gets a value indicating whether the control has input focus.

FontSystem.Drawing.Font.

Gets or sets the font of the text displayed by the control.

ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the control.

[read-only]
HandleIntPtr.

Gets the window handle that the control is bound to.

[read-only]
HasChildrenbool.

Gets a value indicating whether the control contains one or more child controls.

Heightint.

Gets or sets the height of the control.

ImeModeImeMode.

Gets or sets the Input Method Editor (IME) mode of the control.

[read-only]
InvokeRequiredbool.

Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.

IsAccessiblebool.

Gets or sets a value indicating whether the control is visible to accessibility applications.

[read-only]
IsDisposedbool.

Gets a value indicating whether the control has been disposed of.

[read-only]
IsHandleCreatedbool.

Gets a value indicating whether the control has a handle associated with it.

[read-only]
IsMirroredbool.

Gets a value indicating whether the control is mirrored.

[read-only]
LayoutEngineSystem.Windows.Forms.Layout.LayoutEngine.

Gets a cached instance of the control's layout engine.

Leftint.

Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.

LocationSystem.Drawing.Point.

Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.

MarginPadding.

Gets or sets the space between controls.

MaximumSizeSystem.Drawing.Size.

Gets or sets the size that is the upper limit that Control.GetPreferredSize(System.Drawing.Size) can specify.

MinimumSizeSystem.Drawing.Size.

Gets or sets the size that is the lower limit that Control.GetPreferredSize(System.Drawing.Size) can specify.

[read-only]
static
ModifierKeysKeys.

Gets a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.

[read-only]
static
MouseButtonsMouseButtons.

Gets a value indicating which of the mouse buttons is in a pressed state.

[read-only]
static
MousePositionSystem.Drawing.Point.

Gets the position of the mouse cursor in screen coordinates.

Namestring.

Gets or sets the name of the control.

PaddingPadding.

Gets or sets padding within the control.

ParentControl.

Gets or sets the parent container of the control.

[read-only]
PreferredSizeSystem.Drawing.Size.

Gets the size of a rectangular area into which the control can fit.

[read-only]
ProductNamestring.

Gets the product name of the assembly containing the control.

[read-only]
ProductVersionstring.

Gets the version of the assembly containing the control.

[read-only]
RecreatingHandlebool.

Gets a value indicating whether the control is currently re-creating its handle.

RegionSystem.Drawing.Region.

Gets or sets the window region associated with the control.

[read-only]
Rightint.

Gets the distance, in pixels, between the right edge of the control and the left edge of its container's client area.

RightToLeftRightToLeft.

Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.

override
SiteSystem.ComponentModel.ISite.

Gets or sets the site of the control.

SizeSystem.Drawing.Size.

Gets or sets the height and width of the control.

TabIndexint.

Gets or sets the tab order of the control within its container.

TabStopbool.

Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.

Tagobject.

Gets or sets the object that contains data about the control.

Textstring.

Gets or sets the text associated with this control.

Topint.

Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area.

[read-only]
TopLevelControlControl.

Gets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost System.Windows.Forms.Form that the control is contained in.

UseWaitCursorbool.

Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls.

Visiblebool.

Gets or sets a value indicating whether the control and all its child controls are displayed.

Widthint.

Gets or sets the width of the control.

WindowTargetIWindowTarget.

This property is not relevant for this class.

Protected Properties

[read-only]
CanEnableImebool.

Gets a value indicating whether the Control.ImeMode property can be set to an active value, to enable IME support.

[read-only]
override
CanRaiseEventsbool.

Determines if events can be raised on the control.

[read-only]
CreateParamsCreateParams.

Gets the required creation parameters when the control handle is created.

[read-only]
DefaultCursorCursor.

Gets or sets the default cursor for the control.

[read-only]
DefaultImeModeImeMode.

Gets the default Input Method Editor (IME) mode supported by the control.

[read-only]
DefaultMarginPadding.

Gets the space, in pixels, that is specified by default between controls.

[read-only]
DefaultMaximumSizeSystem.Drawing.Size.

Gets the length and height, in pixels, that is specified as the default maximum size of a control.

[read-only]
DefaultMinimumSizeSystem.Drawing.Size.

Gets the length and height, in pixels, that is specified as the default minimum size of a control.

[read-only]
DefaultPaddingPadding.

Gets the internal spacing, in pixels, of the contents of a control.

[read-only]
DefaultSizeSystem.Drawing.Size.

Gets the default size of the control.

DoubleBufferedbool.

Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker.

FontHeightint.

Gets or sets the height of the font of the control.

[read-only]
RenderRightToLeftbool.

This property is now obsolete.

ResizeRedrawbool.

Gets or sets a value indicating whether the control redraws itself when resized.

[read-only]
ScaleChildrenbool.

Gets a value that determines the scaling of child controls.

[read-only]
ShowFocusCuesbool.

Gets a value indicating whether the control should display focus rectangles.

[read-only]
ShowKeyboardCuesbool.

Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators.

Public Methods

BeginInvoke(Delegate) : IAsyncResult

Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on.

BeginInvoke(Delegate, params object[]) : IAsyncResult

Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on.

BringToFront()

Brings the control to the front of the z-order.

Contains(Control) : bool

Retrieves a value indicating whether the specified control is a child of the control.

CreateControl()

Forces the creation of the visible control, including the creation of the handle and any visible child controls.

CreateGraphics() : System.Drawing.Graphics

Creates the System.Drawing.Graphics for the control.

DoDragDrop(object, DragDropEffects) : DragDropEffects

Begins a drag-and-drop operation.

DrawToBitmap(System.Drawing.Bitmap, System.Drawing.Rectangle)

Supports rendering to the specified bitmap.

EndInvoke(IAsyncResult) : object

Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.

FindForm() : Form

Retrieves the form that the control is on.

Focus() : bool

Sets input focus to the control.

static
FromChildHandle(IntPtr) : Control

Retrieves the control that contains the specified handle.

static
FromHandle(IntPtr) : Control

Returns the control that is currently associated with the specified handle.

GetChildAtPoint(System.Drawing.Point) : Control

Retrieves the child control that is located at the specified coordinates.

GetChildAtPoint(System.Drawing.Point, GetChildAtPointSkip) : Control

Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.

GetContainerControl() : IContainerControl

Returns the next System.Windows.Forms.ContainerControl up the control's chain of parent controls.

GetNextControl(Control, bool) : Control

Retrieves the next control forward or back in the tab order of child controls.

GetPreferredSize(System.Drawing.Size) : System.Drawing.Size

Retrieves the size of a rectangular area into which a control can be fitted.

Hide()

Conceals the control from the user.

Invalidate()

Invalidates the entire surface of the control and causes the control to be redrawn.

Invalidate(bool)

Invalidates a specific region of the control and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.

Invalidate(System.Drawing.Rectangle)

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

Invalidate(System.Drawing.Region)

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

Invalidate(System.Drawing.Rectangle, bool)

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.

Invalidate(System.Drawing.Region, bool)

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.

Invoke(Delegate) : object

Executes the specified delegate on the thread that owns the control's underlying window handle.

Invoke(Delegate, params object[]) : object

Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments.

static
IsKeyLocked(Keys) : bool

Determines whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK key is in effect.

static
IsMnemonic(char, string) : bool

Determines if the specified character is the mnemonic character assigned to the control in the specified string.

PerformLayout()

Forces the control to apply layout logic to all its child controls.

PerformLayout(Control, string)

Forces the control to apply layout logic to all its child controls.

PointToClient(System.Drawing.Point) : System.Drawing.Point

Computes the location of the specified screen point into client coordinates.

PointToScreen(System.Drawing.Point) : System.Drawing.Point

Computes the location of the specified client point into screen coordinates.

PreProcessControlMessage(ref Message) : PreProcessControlState
Documentation for this section has not yet been entered.
PreProcessMessage(ref Message) : bool
Documentation for this section has not yet been entered.
RectangleToClient(System.Drawing.Rectangle) : System.Drawing.Rectangle

Computes the size and location of the specified screen rectangle in client coordinates.

RectangleToScreen(System.Drawing.Rectangle) : System.Drawing.Rectangle

Computes the size and location of the specified client rectangle in screen coordinates.

Refresh()

Forces the control to invalidate its client area and immediately redraw itself and any child controls.

ResetBackColor()

Resets the Control.BackColor property to its default value.

ResetBindings()

Causes a control bound to the System.Windows.Forms.BindingSource to reread all the items in the list and refresh their displayed values.

ResetCursor()

Resets the Control.Cursor property to its default value.

ResetFont()

Resets the Control.Font property to its default value.

ResetForeColor()

Resets the Control.ForeColor property to its default value.

ResetImeMode()

Resets the Control.ImeMode property to its default value.

ResetRightToLeft()

Resets the Control.RightToLeft property to its default value.

ResetText()

Resets the Control.Text property to its default value.

ResumeLayout()

Resumes usual layout logic.

ResumeLayout(bool)

Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests.

Scale(System.Drawing.SizeF)

Scales the control and all child controls by the specified scaling factor.

Scale(float)

Scales the control and any child controls.

Scale(float, float)

Scales the entire control and any child controls.

Select()

Activates the control.

SelectNextControl(Control, bool, bool, bool, bool) : bool

Activates the next control.

SendToBack()

Sends the control to the back of the z-order.

SetBounds(int, int, int, int)

Sets the bounds of the control to the specified location and size.

SetBounds(int, int, int, int, BoundsSpecified)

Sets the specified bounds of the control to the specified location and size.

Show()

Displays the control to the user.

SuspendLayout()

Temporarily suspends the layout logic for the control.

Update()

Causes the control to redraw the invalidated regions within its client area.

Protected Methods

AccessibilityNotifyClients(AccessibleEvents, int)

Notifies the accessibility client applications of the specified System.Windows.Forms.AccessibleEvents for the specified child control.

AccessibilityNotifyClients(AccessibleEvents, int, int)

Notifies the accessibility client applications of the specified System.Windows.Forms.AccessibleEvents for the specified child control .

CreateAccessibilityInstance() : AccessibleObject

Creates a new accessibility object for the control.

CreateControlsInstance() : Control.ControlCollection

Creates a new instance of the control collection for the control.

CreateHandle()

Creates a handle for the control.

DefWndProc(ref Message)
Documentation for this section has not yet been entered.
DestroyHandle()

Destroys the handle associated with the control.

override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.Control and its child controls and optionally releases the managed resources.

GetAccessibilityObjectById(int) : AccessibleObject

Retrieves the specified System.Windows.Forms.AccessibleObject.

GetAutoSizeMode() : AutoSizeMode

Retrieves a value indicating how a control will behave when its Control.AutoSize property is enabled.

GetScaledBounds(System.Drawing.Rectangle, System.Drawing.SizeF, BoundsSpecified) : System.Drawing.Rectangle

Retrieves the bounds within which the control is scaled.

GetStyle(ControlStyles) : bool

Retrieves the value of the specified control style bit for the control.

GetTopLevel() : bool

Determines if the control is a top-level control.

InitLayout()

Called after the control has been added to another container.

InvokeGotFocus(Control, EventArgs)

Raises the Control.GotFocus event for the specified control.

InvokeLostFocus(Control, EventArgs)

Raises the Control.LostFocus event for the specified control.

InvokeOnClick(Control, EventArgs)

Raises the Control.Click event for the specified control.

InvokePaint(Control, PaintEventArgs)

Raises the Control.Paint event for the specified control.

InvokePaintBackground(Control, PaintEventArgs)

Raises the PaintBackground event for the specified control.

IsInputChar(char) : bool

Determines if a character is an input character that the control recognizes.

IsInputKey(Keys) : bool

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

NotifyInvalidate(System.Drawing.Rectangle)

Raises the Control.Invalidated event with a specified region of the control to invalidate.

OnAutoSizeChanged(EventArgs)

Raises the Control.AutoSizeChanged event.

OnBackColorChanged(EventArgs)

Raises the Control.BackColorChanged event.

OnBackgroundImageChanged(EventArgs)

Raises the Control.BackgroundImageChanged event.

OnBackgroundImageLayoutChanged(EventArgs)

Raises the Control.BackgroundImageLayoutChanged event.

OnBindingContextChanged(EventArgs)

Raises the Control.BindingContextChanged event.

OnCausesValidationChanged(EventArgs)

Raises the Control.CausesValidationChanged event.

OnChangeUICues(UICuesEventArgs)

Raises the Control.ChangeUICues event.

OnClick(EventArgs)

Raises the Control.Click event.

OnClientSizeChanged(EventArgs)

Raises the Control.ClientSizeChanged event.

OnContextMenuChanged(EventArgs)

Raises the Control.ContextMenuChanged event.

OnContextMenuStripChanged(EventArgs)

Raises the Control.ContextMenuStripChanged event.

OnControlAdded(ControlEventArgs)

Raises the Control.ControlAdded event.

OnControlRemoved(ControlEventArgs)

Raises the Control.ControlRemoved event.

OnCreateControl()

Raises the Control.CreateControl method.

OnCursorChanged(EventArgs)

Raises the Control.CursorChanged event.

OnDockChanged(EventArgs)

Raises the Control.DockChanged event.

OnDoubleClick(EventArgs)

Raises the Control.DoubleClick event.

OnDragDrop(DragEventArgs)

Raises the Control.DragDrop event.

OnDragEnter(DragEventArgs)

Raises the Control.DragEnter event.

OnDragLeave(EventArgs)

Raises the Control.DragLeave event.

OnDragOver(DragEventArgs)

Raises the Control.DragOver event.

OnEnabledChanged(EventArgs)

Raises the Control.EnabledChanged event.

OnEnter(EventArgs)

Raises the Control.Enter event.

OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

OnForeColorChanged(EventArgs)

Raises the Control.ForeColorChanged event.

OnGiveFeedback(GiveFeedbackEventArgs)

Raises the Control.GiveFeedback event.

OnGotFocus(EventArgs)

Raises the Control.GotFocus event.

OnHandleCreated(EventArgs)

Raises the Control.HandleCreated event.

OnHandleDestroyed(EventArgs)

Raises the Control.HandleDestroyed event.

OnHelpRequested(HelpEventArgs)

Raises the Control.HelpRequested event.

OnImeModeChanged(EventArgs)

Raises the Control.ImeModeChanged event.

OnInvalidated(InvalidateEventArgs)

Raises the Control.Invalidated event.

OnKeyDown(KeyEventArgs)

Raises the Control.KeyDown event.

OnKeyPress(KeyPressEventArgs)

Raises the Control.KeyPress event.

OnKeyUp(KeyEventArgs)

Raises the Control.KeyUp event.

OnLayout(LayoutEventArgs)

Raises the Control.Layout event.

OnLeave(EventArgs)

Raises the Control.Leave event.

OnLocationChanged(EventArgs)

Raises the Control.LocationChanged event.

OnLostFocus(EventArgs)

Raises the Control.LostFocus event.

OnMarginChanged(EventArgs)

Raises the Control.MarginChanged event.

OnMouseCaptureChanged(EventArgs)

Raises the Control.MouseCaptureChanged event.

OnMouseClick(MouseEventArgs)

Raises the Control.MouseClick event.

OnMouseDoubleClick(MouseEventArgs)

Raises the Control.MouseDoubleClick event.

OnMouseDown(MouseEventArgs)

Raises the Control.MouseDown event.

OnMouseEnter(EventArgs)

Raises the Control.MouseEnter event.

OnMouseHover(EventArgs)

Raises the Control.MouseHover event.

OnMouseLeave(EventArgs)

Raises the Control.MouseLeave event.

OnMouseMove(MouseEventArgs)

Raises the Control.MouseMove event.

OnMouseUp(MouseEventArgs)

Raises the Control.MouseUp event.

OnMouseWheel(MouseEventArgs)

Raises the Control.MouseWheel event.

OnMove(EventArgs)

Raises the Control.Move event.

OnNotifyMessage(Message)

Notifies the control of Windows messages.

OnPaddingChanged(EventArgs)

Raises the Control.PaddingChanged event.

OnPaint(PaintEventArgs)

Raises the Control.Paint event.

OnPaintBackground(PaintEventArgs)

Paints the background of the control.

OnParentBackColorChanged(EventArgs)

Raises the Control.BackColorChanged event when the Control.BackColor property value of the control's container changes.

OnParentBackgroundImageChanged(EventArgs)

Raises the Control.BackgroundImageChanged event when the Control.BackgroundImage property value of the control's container changes.

OnParentBindingContextChanged(EventArgs)

Raises the Control.BindingContextChanged event when the Control.BindingContext property value of the control's container changes.

OnParentChanged(EventArgs)

Raises the Control.ParentChanged event.

OnParentCursorChanged(EventArgs)

Raises the Control.CursorChanged event.

OnParentEnabledChanged(EventArgs)

Raises the Control.EnabledChanged event when the Control.Enabled property value of the control's container changes.

OnParentFontChanged(EventArgs)

Raises the Control.FontChanged event when the Control.Font property value of the control's container changes.

OnParentForeColorChanged(EventArgs)

Raises the Control.ForeColorChanged event when the Control.ForeColor property value of the control's container changes.

OnParentRightToLeftChanged(EventArgs)

Raises the Control.RightToLeftChanged event when the Control.RightToLeft property value of the control's container changes.

OnParentVisibleChanged(EventArgs)

Raises the Control.VisibleChanged event when the Control.Visible property value of the control's container changes.

OnPreviewKeyDown(PreviewKeyDownEventArgs)

Raises the Control.PreviewKeyDown event.

OnPrint(PaintEventArgs)

Raises the Control.Paint event.

OnQueryContinueDrag(QueryContinueDragEventArgs)

Raises the Control.QueryContinueDrag event.

OnRegionChanged(EventArgs)

Raises the Control.RegionChanged event.

OnResize(EventArgs)

Raises the Control.Resize event.

OnRightToLeftChanged(EventArgs)

Raises the Control.RightToLeftChanged event.

OnSizeChanged(EventArgs)

Raises the Control.SizeChanged event.

OnStyleChanged(EventArgs)

Raises the Control.StyleChanged event.

OnSystemColorsChanged(EventArgs)

Raises the Control.SystemColorsChanged event.

OnTabIndexChanged(EventArgs)

Raises the Control.TabIndexChanged event.

OnTabStopChanged(EventArgs)

Raises the Control.TabStopChanged event.

OnTextChanged(EventArgs)

Raises the Control.TextChanged event.

OnValidated(EventArgs)

Raises the Control.Validated event.

OnValidating(System.ComponentModel.CancelEventArgs)

Raises the Control.Validating event.

OnVisibleChanged(EventArgs)

Raises the Control.VisibleChanged event.

ProcessCmdKey(ref Message, Keys) : bool
Documentation for this section has not yet been entered.
ProcessDialogChar(char) : bool

Processes a dialog character.

ProcessDialogKey(Keys) : bool

Processes a dialog key.

ProcessKeyEventArgs(ref Message) : bool
Documentation for this section has not yet been entered.
ProcessKeyMessage(ref Message) : bool
Documentation for this section has not yet been entered.
ProcessKeyPreview(ref Message) : bool
Documentation for this section has not yet been entered.
ProcessMnemonic(char) : bool

Processes a mnemonic character.

RaiseDragEvent(object, DragEventArgs)

Raises the appropriate drag event.

RaiseKeyEvent(object, KeyEventArgs)

Raises the appropriate key event.

RaiseMouseEvent(object, MouseEventArgs)

Raises the appropriate mouse event.

RaisePaintEvent(object, PaintEventArgs)

Raises the appropriate paint event.

RecreateHandle()

Forces the re-creation of the handle for the control.

static
ReflectMessage(IntPtr, ref Message) : bool
Documentation for this section has not yet been entered.
ResetMouseEventArgs()

Resets the control to handle the Control.MouseLeave event.

RtlTranslateAlignment(System.Drawing.ContentAlignment) : System.Drawing.ContentAlignment

Converts the specified System.Drawing.ContentAlignment to the appropriate System.Drawing.ContentAlignment to support right-to-left text.

RtlTranslateAlignment(HorizontalAlignment) : HorizontalAlignment

Converts the specified System.Windows.Forms.HorizontalAlignment to the appropriate System.Windows.Forms.HorizontalAlignment to support right-to-left text.

RtlTranslateAlignment(LeftRightAlignment) : LeftRightAlignment

Converts the specified System.Windows.Forms.LeftRightAlignment to the appropriate System.Windows.Forms.LeftRightAlignment to support right-to-left text.

RtlTranslateContent(System.Drawing.ContentAlignment) : System.Drawing.ContentAlignment

Converts the specified System.Drawing.ContentAlignment to the appropriate System.Drawing.ContentAlignment to support right-to-left text.

RtlTranslateHorizontal(HorizontalAlignment) : HorizontalAlignment

Converts the specified System.Windows.Forms.HorizontalAlignment to the appropriate System.Windows.Forms.HorizontalAlignment to support right-to-left text.

RtlTranslateLeftRight(LeftRightAlignment) : LeftRightAlignment

Converts the specified System.Windows.Forms.LeftRightAlignment to the appropriate System.Windows.Forms.LeftRightAlignment to support right-to-left text.

ScaleControl(System.Drawing.SizeF, BoundsSpecified)

Scales a control's location, size, padding and margin.

ScaleCore(float, float)

This method is not relevant for this class.

Select(bool, bool)

Activates a child control. Optionally specifies the direction in the tab order to select the control from.

SetAutoSizeMode(AutoSizeMode)

Sets a value indicating how a control will behave when its Control.AutoSize property is enabled.

SetBoundsCore(int, int, int, int, BoundsSpecified)

Performs the work of setting the specified bounds of this control.

SetClientSizeCore(int, int)

Sets the size of the client area of the control.

SetStyle(ControlStyles, bool)

Sets a specified System.Windows.Forms.ControlStyles flag to either true or false.

SetTopLevel(bool)

Sets the control as the top-level control.

SetVisibleCore(bool)

Sets the control to the specified visible state.

SizeFromClientSize(System.Drawing.Size) : System.Drawing.Size

Determines the size of the entire control from the height and width of its client area.

UpdateBounds()

Updates the bounds of the control with the current size and location.

UpdateBounds(int, int, int, int)

Updates the bounds of the control with the specified size and location.

UpdateBounds(int, int, int, int, int, int)

Updates the bounds of the control with the specified size, location, and client size.

UpdateStyles()

Forces the assigned styles to be reapplied to the control.

UpdateZOrder()

Updates the control in its parent's z-order.

WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

AutoSizeChanged

This event is not relevant for this class.

BackColorChanged

Occurs when the value of the Control.BackColor property changes.

BackgroundImageChanged

Occurs when the value of the Control.BackgroundImage property changes.

BackgroundImageLayoutChanged

Occurs when the Control.BackgroundImageLayout property changes.

BindingContextChanged

Occurs when the value of the System.Windows.Forms.BindingContext property changes.

CausesValidationChanged

Occurs when the value of the Control.CausesValidation property changes.

ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click

Occurs when the control is clicked.

ClientSizeChanged

Occurs when the value of the Control.ClientSize property changes.

ContextMenuChanged

Occurs when the value of the Control.ContextMenu property changes.

ContextMenuStripChanged

Occurs when the value of the Control.ContextMenuStrip property changes.

ControlAdded

Occurs when a new control is added to the System.Windows.Forms.Control.ControlCollection.

ControlRemoved

Occurs when a control is removed from the System.Windows.Forms.Control.ControlCollection.

CursorChanged

Occurs when the value of the Control.Cursor property changes.

DockChanged

Occurs when the value of the Control.Dock property changes.

DoubleClick

Occurs when the control is double-clicked.

DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged

Occurs when the Control.Enabled property value has changed.

Enter

Occurs when the control is entered.

FontChanged

Occurs when the Control.Font property value changes.

ForeColorChanged

Occurs when the Control.ForeColor property value changes.

GiveFeedback

Occurs during a drag operation.

GotFocus

Occurs when the control receives focus.

HandleCreated

Occurs when a handle is created for the control.

HandleDestroyed

Occurs when the control's handle is in the process of being destroyed.

HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged

Occurs when the Control.ImeMode property has changed.

Invalidated

Occurs when a control's display requires redrawing.

KeyDown

Occurs when a key is pressed while the control has focus.

KeyPress

Occurs when a key is pressed while the control has focus.

KeyUp

Occurs when a key is released while the control has focus.

Layout

Occurs when a control should reposition its child controls.

Leave

Occurs when the input focus leaves the control.

LocationChanged

Occurs when the Control.Location property value has changed.

LostFocus

Occurs when the control loses focus.

MarginChanged

Occurs when the control's margin changes.

MouseCaptureChanged

Occurs when the control loses mouse capture.

MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick

Occurs when the control is double clicked by the mouse.

MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

MouseWheel

Occurs when the mouse wheel moves while the control has focus.

Move

Occurs when the control is moved.

PaddingChanged

Occurs when the control's padding changes.

Paint

Occurs when the control is redrawn.

ParentChanged

Occurs when the Control.Parent property value changes.

PreviewKeyDown

Occurs before the Control.KeyDown event when a key is pressed while focus is on this control.

QueryAccessibilityHelp

Occurs when System.Windows.Forms.AccessibleObject is providing help to accessibility applications.

QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.

RegionChanged

Occurs when the value of the Control.Region property changes.

Resize

Occurs when the control is resized.

RightToLeftChanged

Occurs when the Control.RightToLeft property value changes.

SizeChanged

Occurs when the Control.Size property value changes.

StyleChanged

Occurs when the control style changes.

SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged

Occurs when the Control.TabIndex property value changes.

TabStopChanged

Occurs when the Control.TabStop property value changes.

TextChanged

Occurs when the Control.Text property value changes.

Validated

Occurs when the control is finished validating.

Validating

Occurs when the control is validating.

VisibleChanged

Occurs when the Control.Visible property value changes.

Explicitly Implemented Interface Members