Control Methods
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Name | Description | |
|---|---|---|
![]() | AccessibilityNotifyClients(AccessibleEvents, Int32) | Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control. |
![]() | AccessibilityNotifyClients(AccessibleEvents, Int32, Int32) | Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control . |
![]() | BeginInvoke(Delegate^) | Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on. |
![]() | BeginInvoke(Delegate^, array<Object^>^) | 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^) | Retrieves a value indicating whether the specified control is a child of the control. |
![]() | CreateAccessibilityInstance() | Creates a new accessibility object for the control. |
![]() | CreateControl() | Forces the creation of the visible control, including the creation of the handle and any visible child controls. |
![]() | CreateControlsInstance() | Creates a new instance of the control collection for the control. |
![]() | CreateGraphics() | Creates the Graphics for the control. |
![]() | CreateHandle() | Creates a handle for the control. |
![]() | CreateObjRef(Type^) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.) |
![]() | DefWndProc(Message%) | Sends the specified message to the default window procedure. |
![]() | DestroyHandle() | Destroys the handle associated with the control. |
![]() | Dispose() | |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.(Overrides Component::Dispose(Boolean).) |
![]() | DoDragDrop(Object^, DragDropEffects) | Begins a drag-and-drop operation. |
![]() | DrawToBitmap(Bitmap^, Rectangle) | Supports rendering to the specified bitmap. |
![]() | EndInvoke(IAsyncResult^) | Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | |
![]() | FindForm() | Retrieves the form that the control is on. |
![]() | Focus() | Sets input focus to the control. |
![]() ![]() | FromChildHandle(IntPtr) | Retrieves the control that contains the specified handle. |
![]() ![]() | FromHandle(IntPtr) | Returns the control that is currently associated with the specified handle. |
![]() | GetAccessibilityObjectById(Int32) | Retrieves the specified AccessibleObject. |
![]() | GetAutoSizeMode() | Retrieves a value indicating how a control will behave when its AutoSize property is enabled. |
![]() | GetChildAtPoint(Point) | Retrieves the child control that is located at the specified coordinates. |
![]() | GetChildAtPoint(Point, GetChildAtPointSkip) | Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type. |
![]() | GetContainerControl() | Returns the next ContainerControl up the control's chain of parent controls. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetLifetimeService() | Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | GetNextControl(Control^, Boolean) | Retrieves the next control forward or back in the tab order of child controls. |
![]() | GetPreferredSize(Size) | Retrieves the size of a rectangular area into which a control can be fitted. |
![]() | GetScaledBounds(Rectangle, SizeF, BoundsSpecified) | Retrieves the bounds within which the control is scaled. |
![]() | GetService(Type^) | |
![]() | GetStyle(ControlStyles) | Retrieves the value of the specified control style bit for the control. |
![]() | GetTopLevel() | Determines if the control is a top-level control. |
![]() | GetType() | |
![]() | Hide() | Conceals the control from the user. |
![]() | InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | InitLayout() | Called after the control has been added to another container. |
![]() | Invalidate() | Invalidates the entire surface of the control and causes the control to be redrawn. |
![]() | Invalidate(Boolean) | 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(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(Rectangle, Boolean) | 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(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(Region^, Boolean) | 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^) | Executes the specified delegate on the thread that owns the control's underlying window handle. |
![]() | Invoke(Delegate^, array<Object^>^) | Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments. |
![]() | InvokeGotFocus(Control^, EventArgs^) | Raises the GotFocus event for the specified control. |
![]() | InvokeLostFocus(Control^, EventArgs^) | Raises the LostFocus event for the specified control. |
![]() | InvokeOnClick(Control^, EventArgs^) | Raises the Click event for the specified control. |
![]() | InvokePaint(Control^, PaintEventArgs^) | Raises the Paint event for the specified control. |
![]() | InvokePaintBackground(Control^, PaintEventArgs^) | Raises the PaintBackground event for the specified control. |
![]() | IsInputChar(Char) | Determines if a character is an input character that the control recognizes. |
![]() | IsInputKey(Keys) | Determines whether the specified key is a regular input key or a special key that requires preprocessing. |
![]() ![]() | IsKeyLocked(Keys) | Determines whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK key is in effect. |
![]() ![]() | IsMnemonic(Char, String^) | Determines if the specified character is the mnemonic character assigned to the control in the specified string. |
![]() | LogicalToDeviceUnits(Int32) | Converts a Logical DPI value to it's equivalent DeviceUnit DPI value. |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.) |
![]() | NotifyInvalidate(Rectangle) | This API supports the product infrastructure and is not intended to be used directly from your code. Raises the Invalidated event with a specified region of the control to invalidate. |
![]() | OnAutoSizeChanged(EventArgs^) | Raises the AutoSizeChanged event. |
![]() | OnBackColorChanged(EventArgs^) | Raises the BackColorChanged event. |
![]() | OnBackgroundImageChanged(EventArgs^) | Raises the BackgroundImageChanged event. |
![]() | OnBackgroundImageLayoutChanged(EventArgs^) | Raises the BackgroundImageLayoutChanged event. |
![]() | OnBindingContextChanged(EventArgs^) | Raises the BindingContextChanged event. |
![]() | OnCausesValidationChanged(EventArgs^) | Raises the CausesValidationChanged event. |
![]() | OnChangeUICues(UICuesEventArgs^) | Raises the ChangeUICues event. |
![]() | OnClick(EventArgs^) | Raises the Click event. |
![]() | OnClientSizeChanged(EventArgs^) | Raises the ClientSizeChanged event. |
![]() | OnContextMenuChanged(EventArgs^) | Raises the ContextMenuChanged event. |
![]() | OnContextMenuStripChanged(EventArgs^) | Raises the ContextMenuStripChanged event. |
![]() | OnControlAdded(ControlEventArgs^) | Raises the ControlAdded event. |
![]() | OnControlRemoved(ControlEventArgs^) | Raises the ControlRemoved event. |
![]() | OnCreateControl() | Raises the CreateControl method. |
![]() | OnCursorChanged(EventArgs^) | Raises the CursorChanged event. |
![]() | OnDockChanged(EventArgs^) | Raises the DockChanged event. |
![]() | OnDoubleClick(EventArgs^) | Raises the DoubleClick event. |
![]() | OnDpiChangedAfterParent(EventArgs^) | Raises the DpiChangedAfterParent event. |
![]() | OnDpiChangedBeforeParent(EventArgs^) | Raises the DpiChangedBeforeParent event. |
![]() | OnDragDrop(DragEventArgs^) | Raises the DragDrop event. |
![]() | OnDragEnter(DragEventArgs^) | Raises the DragEnter event. |
![]() | OnDragLeave(EventArgs^) | Raises the DragLeave event. |
![]() | OnDragOver(DragEventArgs^) | Raises the DragOver event. |
![]() | OnEnabledChanged(EventArgs^) | Raises the EnabledChanged event. |
![]() | OnEnter(EventArgs^) | Raises the Enter event. |
![]() | OnFontChanged(EventArgs^) | Raises the FontChanged event. |
![]() | OnForeColorChanged(EventArgs^) | Raises the ForeColorChanged event. |
![]() | OnGiveFeedback(GiveFeedbackEventArgs^) | Raises the GiveFeedback event. |
![]() | OnGotFocus(EventArgs^) | Raises the GotFocus event. |
![]() | OnHandleCreated(EventArgs^) | Raises the HandleCreated event. |
![]() | OnHandleDestroyed(EventArgs^) | Raises the HandleDestroyed event. |
![]() | OnHelpRequested(HelpEventArgs^) | Raises the HelpRequested event. |
![]() | OnImeModeChanged(EventArgs^) | Raises the ImeModeChanged event. |
![]() | OnInvalidated(InvalidateEventArgs^) | Raises the Invalidated event. |
![]() | OnKeyDown(KeyEventArgs^) | Raises the KeyDown event. |
![]() | OnKeyPress(KeyPressEventArgs^) | Raises the KeyPress event. |
![]() | OnKeyUp(KeyEventArgs^) | Raises the KeyUp event. |
![]() | OnLayout(LayoutEventArgs^) | Raises the Layout event. |
![]() | OnLeave(EventArgs^) | Raises the Leave event. |
![]() | OnLocationChanged(EventArgs^) | Raises the LocationChanged event. |
![]() | OnLostFocus(EventArgs^) | Raises the LostFocus event. |
![]() | OnMarginChanged(EventArgs^) | Raises the MarginChanged event. |
![]() | OnMouseCaptureChanged(EventArgs^) | Raises the MouseCaptureChanged event. |
![]() | OnMouseClick(MouseEventArgs^) | Raises the MouseClick event. |
![]() | OnMouseDoubleClick(MouseEventArgs^) | Raises the MouseDoubleClick event. |
![]() | OnMouseDown(MouseEventArgs^) | Raises the MouseDown event. |
![]() | OnMouseEnter(EventArgs^) | Raises the MouseEnter event. |
![]() | OnMouseHover(EventArgs^) | Raises the MouseHover event. |
![]() | OnMouseLeave(EventArgs^) | Raises the MouseLeave event. |
![]() | OnMouseMove(MouseEventArgs^) | Raises the MouseMove event. |
![]() | OnMouseUp(MouseEventArgs^) | Raises the MouseUp event. |
![]() | OnMouseWheel(MouseEventArgs^) | Raises the MouseWheel event. |
![]() | OnMove(EventArgs^) | Raises the Move event. |
![]() | OnNotifyMessage(Message) | Notifies the control of Windows messages. |
![]() | OnPaddingChanged(EventArgs^) | Raises the PaddingChanged event. |
![]() | OnPaint(PaintEventArgs^) | Raises the Paint event. |
![]() | OnPaintBackground(PaintEventArgs^) | Paints the background of the control. |
![]() | OnParentBackColorChanged(EventArgs^) | Raises the BackColorChanged event when the BackColor property value of the control's container changes. |
![]() | OnParentBackgroundImageChanged(EventArgs^) | Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes. |
![]() | OnParentBindingContextChanged(EventArgs^) | Raises the BindingContextChanged event when the BindingContext property value of the control's container changes. |
![]() | OnParentChanged(EventArgs^) | Raises the ParentChanged event. |
![]() | OnParentCursorChanged(EventArgs^) | Raises the CursorChanged event. |
![]() | OnParentEnabledChanged(EventArgs^) | Raises the EnabledChanged event when the Enabled property value of the control's container changes. |
![]() | OnParentFontChanged(EventArgs^) | Raises the FontChanged event when the Font property value of the control's container changes. |
![]() | OnParentForeColorChanged(EventArgs^) | Raises the ForeColorChanged event when the ForeColor property value of the control's container changes. |
![]() | OnParentRightToLeftChanged(EventArgs^) | Raises the RightToLeftChanged event when the RightToLeft property value of the control's container changes. |
![]() | OnParentVisibleChanged(EventArgs^) | Raises the VisibleChanged event when the Visible property value of the control's container changes. |
![]() | OnPreviewKeyDown(PreviewKeyDownEventArgs^) | Raises the PreviewKeyDown event. |
![]() | OnPrint(PaintEventArgs^) | Raises the Paint event. |
![]() | OnQueryContinueDrag(QueryContinueDragEventArgs^) | Raises the QueryContinueDrag event. |
![]() | OnRegionChanged(EventArgs^) | Raises the RegionChanged event. |
![]() | OnResize(EventArgs^) | Raises the Resize event. |
![]() | OnRightToLeftChanged(EventArgs^) | Raises the RightToLeftChanged event. |
![]() | OnSizeChanged(EventArgs^) | Raises the SizeChanged event. |
![]() | OnStyleChanged(EventArgs^) | Raises the StyleChanged event. |
![]() | OnSystemColorsChanged(EventArgs^) | Raises the SystemColorsChanged event. |
![]() | OnTabIndexChanged(EventArgs^) | Raises the TabIndexChanged event. |
![]() | OnTabStopChanged(EventArgs^) | Raises the TabStopChanged event. |
![]() | OnTextChanged(EventArgs^) | Raises the TextChanged event. |
![]() | OnValidated(EventArgs^) | Raises the Validated event. |
![]() | OnValidating(CancelEventArgs^) | Raises the Validating event. |
![]() | OnVisibleChanged(EventArgs^) | Raises the VisibleChanged event. |
![]() | 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(Point) | Computes the location of the specified screen point into client coordinates. |
![]() | PointToScreen(Point) | Computes the location of the specified client point into screen coordinates. |
![]() | PreProcessControlMessage(Message%) | Preprocesses keyboard or input messages within the message loop before they are dispatched. |
![]() | PreProcessMessage(Message%) | Preprocesses keyboard or input messages within the message loop before they are dispatched. |
![]() | ProcessCmdKey(Message%, Keys) | Processes a command key. |
![]() | ProcessDialogChar(Char) | Processes a dialog character. |
![]() | ProcessDialogKey(Keys) | Processes a dialog key. |
![]() | ProcessKeyEventArgs(Message%) | Processes a key message and generates the appropriate control events. |
![]() | ProcessKeyMessage(Message%) | Processes a keyboard message. |
![]() | ProcessKeyPreview(Message%) | Previews a keyboard message. |
![]() | ProcessMnemonic(Char) | Processes a mnemonic character. |
![]() | RaiseDragEvent(Object^, DragEventArgs^) | This API supports the product infrastructure and is not intended to be used directly from your code. Raises the appropriate drag event. |
![]() | RaiseKeyEvent(Object^, KeyEventArgs^) | This API supports the product infrastructure and is not intended to be used directly from your code. Raises the appropriate key event. |
![]() | RaiseMouseEvent(Object^, MouseEventArgs^) | This API supports the product infrastructure and is not intended to be used directly from your code. Raises the appropriate mouse event. |
![]() | RaisePaintEvent(Object^, PaintEventArgs^) | This API supports the product infrastructure and is not intended to be used directly from your code. Raises the appropriate paint event. |
![]() | RecreateHandle() | Forces the re-creation of the handle for the control. |
![]() | RectangleToClient(Rectangle) | Computes the size and location of the specified screen rectangle in client coordinates. |
![]() | RectangleToScreen(Rectangle) | Computes the size and location of the specified client rectangle in screen coordinates. |
![]() ![]() | ReflectMessage(IntPtr, Message%) | Reflects the specified message to the control that is bound to the specified handle. |
![]() | Refresh() | Forces the control to invalidate its client area and immediately redraw itself and any child controls. |
![]() | RescaleConstantsForDpi(Int32, Int32) | Provides constants for rescaling the control when a DPI change occurs. |
![]() | ResetBackColor() | Resets the BackColor property to its default value. |
![]() | ResetBindings() | Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. |
![]() | 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. |
![]() | ResetMouseEventArgs() | This API supports the product infrastructure and is not intended to be used directly from your code. Resets the control to handle the MouseLeave event. |
![]() | ResetRightToLeft() | Resets the RightToLeft property to its default value. |
![]() | ResetText() | Resets the Text property to its default value. |
![]() | ResumeLayout() | Resumes usual layout logic. |
![]() | ResumeLayout(Boolean) | Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests. |
![]() | RtlTranslateAlignment(ContentAlignment) | Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. |
![]() | RtlTranslateAlignment(HorizontalAlignment) | Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. |
![]() | RtlTranslateAlignment(LeftRightAlignment) | Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text. |
![]() | RtlTranslateContent(ContentAlignment) | Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. |
![]() | RtlTranslateHorizontal(HorizontalAlignment) | Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. |
![]() | RtlTranslateLeftRight(LeftRightAlignment) | Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text. |
![]() | Scale(Single) | Obsolete. Scales the control and any child controls. |
![]() | Scale(Single, Single) | Obsolete. Scales the entire control and any child controls. |
![]() | Scale(SizeF) | Scales the control and all child controls by the specified scaling factor. |
![]() | ScaleBitmapLogicalToDevice(Bitmap^%) | Scales a logical bitmap value to it's equivalent device unit value when a DPI change occurs. |
![]() | ScaleControl(SizeF, BoundsSpecified) | Scales a control's location, size, padding and margin. |
![]() | ScaleCore(Single, Single) | This API supports the product infrastructure and is not intended to be used directly from your code. This method is not relevant for this class. |
![]() | Select() | Activates the control. |
![]() | Select(Boolean, Boolean) | Activates a child control. Optionally specifies the direction in the tab order to select the control from. |
![]() | SelectNextControl(Control^, Boolean, Boolean, Boolean, Boolean) | Activates the next control. |
![]() | SendToBack() | Sends the control to the back of the z-order. |
![]() | SetAutoSizeMode(AutoSizeMode) | Sets a value indicating how a control will behave when its AutoSize property is enabled. |
![]() | SetBounds(Int32, Int32, Int32, Int32) | Sets the bounds of the control to the specified location and size. |
![]() | SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) | Sets the specified bounds of the control to the specified location and size. |
![]() | SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) | Performs the work of setting the specified bounds of this control. |
![]() | SetClientSizeCore(Int32, Int32) | Sets the size of the client area of the control. |
![]() | SetStyle(ControlStyles, Boolean) | Sets a specified ControlStyles flag to either true or false. |
![]() | SetTopLevel(Boolean) | Sets the control as the top-level control. |
![]() | SetVisibleCore(Boolean) | Sets the control to the specified visible state. |
![]() | Show() | Displays the control to the user. |
![]() | SizeFromClientSize(Size) | Determines the size of the entire control from the height and width of its client area. |
![]() | SuspendLayout() | Temporarily suspends the layout logic for the control. |
![]() | ToString() | |
![]() | Update() | Causes the control to redraw the invalidated regions within its client area. |
![]() | UpdateBounds() | Updates the bounds of the control with the current size and location. |
![]() | UpdateBounds(Int32, Int32, Int32, Int32) | Updates the bounds of the control with the specified size and location. |
![]() | UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) | 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(Message%) | Processes Windows messages. |
| Name | Description | |
|---|---|---|
![]() ![]() | IDropTarget::OnDragDrop(DragEventArgs^) | This API supports the product infrastructure and is not intended to be used directly from your code. Raises the DragDrop event. |
![]() ![]() | IDropTarget::OnDragEnter(DragEventArgs^) | This API supports the product infrastructure and is not intended to be used directly from your code. Raises the DragEnter event. |
![]() ![]() | IDropTarget::OnDragLeave(EventArgs^) | This API supports the product infrastructure and is not intended to be used directly from your code. Raises the DragLeave event. |
![]() ![]() | IDropTarget::OnDragOver(DragEventArgs^) | This API supports the product infrastructure and is not intended to be used directly from your code. Raises the DragOver event. |




