Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

CheckBox Class

Definition

Namespace:
System.Windows.Forms
Assembly:
System.Windows.Forms.dll
Source:
CheckBox.cs
Source:
CheckBox.cs
Source:
CheckBox.cs
Source:
CheckBox.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents a WindowsCheckBox.

public ref class CheckBox : System::Windows::Forms::ButtonBase
public class CheckBox : System.Windows.Forms.ButtonBase
[System.ComponentModel.DefaultBindingProperty("CheckState")][System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)][System.Runtime.InteropServices.ComVisible(true)]public class CheckBox : System.Windows.Forms.ButtonBase
[System.ComponentModel.DefaultBindingProperty("CheckState")]public class CheckBox : System.Windows.Forms.ButtonBase
type CheckBox = class    inherit ButtonBase
[<System.ComponentModel.DefaultBindingProperty("CheckState")>][<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>][<System.Runtime.InteropServices.ComVisible(true)>]type CheckBox = class    inherit ButtonBase
[<System.ComponentModel.DefaultBindingProperty("CheckState")>]type CheckBox = class    inherit ButtonBase
Public Class CheckBoxInherits ButtonBase
Inheritance
Attributes

Examples

The following code example creates and initializes aCheckBox, gives it the appearance of a toggle button, setsAutoCheck tofalse, and adds it to aForm.

public:   void InstantiateMyCheckBox()   {      // Create and initialize a CheckBox.         CheckBox^ checkBox1 = gcnew CheckBox;            // Make the check box control appear as a toggle button.      checkBox1->Appearance = Appearance::Button;            // Turn off the update of the display on the click of the control.      checkBox1->AutoCheck = false;            // Add the check box control to the form.      this->Controls->Add( checkBox1 );   }
public void InstantiateMyCheckBox() {    // Create and initialize a CheckBox.       CheckBox checkBox1 = new CheckBox();         // Make the check box control appear as a toggle button.    checkBox1.Appearance = Appearance.Button;     // Turn off the update of the display on the click of the control.    checkBox1.AutoCheck = false;     // Add the check box control to the form.    Controls.Add(checkBox1); }
Public Sub InstantiateMyCheckBox()    ' Create and initialize a CheckBox.       Dim checkBox1 As New CheckBox()        ' Make the check box control appear as a toggle button.    checkBox1.Appearance = Appearance.Button        ' Turn off the update of the display on the click of the control.    checkBox1.AutoCheck = False        ' Add the check box control to the form.    Controls.Add(checkBox1)End Sub

Remarks

Use aCheckBox to give the user an option, such as true/false or yes/no. TheCheckBox control can display an image or text or both.

CheckBox andRadioButton controls have a similar function: they allow the user to choose from a list of options.CheckBox controls let the user pick a combination of options. In contrast,RadioButton controls allow a user to choose from mutually exclusive options.

TheAppearance property determines whether theCheckBox appears as a typicalCheckBox or as a button.

TheThreeState property determines whether the control supports two or three states. Use theChecked property to get or set the value of a two-stateCheckBox control and use theCheckState property to get or set the value of a three-stateCheckBox control.

Note

If theThreeState property is set totrue, theChecked property will returntrue for either a checked or indeterminate state.

TheFlatStyle property determines the style and appearance of the control. If theFlatStyle property is set toFlatStyle.System, the user's operating system determines the appearance of the control.

Note

When theFlatStyle property is set toFlatStyle.System, theCheckAlign property is ignored and the control is displayed using theContentAlignment.MiddleLeft orContentAlignment.MiddleRight alignment. If theCheckAlign property is set to one of the right alignments, the control is displayed using theContentAlignment.MiddleRight alignment; otherwise, it is displayed using theContentAlignment.MiddleLeft alignment.

The following describes an indeterminate state: You have aCheckBox that determines if the selected text in aRichTextBox is bold. When you select text you can click theCheckBox to bold the selection. Likewise, when you select some text, theCheckBox displays whether the selected text is bold. If your selected text contains text that is bold and normal, theCheckBox will have an indeterminate state.

Constructors

NameDescription
CheckBox()

Initializes a new instance of theCheckBox class.

Properties

NameDescription
AccessibilityObject

Gets theAccessibleObject assigned to the control.

(Inherited fromControl)
AccessibleDefaultActionDescription

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

(Inherited fromControl)
AccessibleDescription

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

(Inherited fromControl)
AccessibleName

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

(Inherited fromControl)
AccessibleRole

Gets or sets the accessible role of the control.

(Inherited fromControl)
AllowDrop

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

(Inherited fromControl)
Anchor

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

(Inherited fromControl)
Appearance

Gets or sets the value that determines the appearance of aCheckBox control.

AutoCheck

Gets or set a value indicating whether theChecked orCheckState values and theCheckBox's appearance are automatically changed when theCheckBox is clicked.

AutoEllipsis

Gets or sets a value indicating whether the ellipsis character (...) appears at the right edge of the control, denoting that the control text extends beyond the specified length of the control.

(Inherited fromButtonBase)
AutoScrollOffset

Gets or sets where this control is scrolled to inScrollControlIntoView(Control).

(Inherited fromControl)
AutoSize

Gets or sets a value that indicates whether the control resizes based on its contents.

(Inherited fromButtonBase)
BackColor

Gets or sets the background color of the control.

(Inherited fromButtonBase)
BackgroundImage

Gets or sets the background image displayed in the control.

(Inherited fromControl)
BackgroundImageLayout

Gets or sets the background image layout as defined in theImageLayout enumeration.

(Inherited fromControl)
BindingContext

Gets or sets theBindingContext for the control.

(Inherited fromControl)
Bottom

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

(Inherited fromControl)
Bounds

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

(Inherited fromControl)
CanEnableIme

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

(Inherited fromControl)
CanFocus

Gets a value indicating whether the control can receive focus.

(Inherited fromControl)
CanRaiseEvents

Determines if events can be raised on the control.

(Inherited fromControl)
CanSelect

Gets a value indicating whether the control can be selected.

(Inherited fromControl)
Capture

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

(Inherited fromControl)
CausesValidation

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

(Inherited fromControl)
CheckAlign

Gets or sets the horizontal and vertical alignment of the check mark on aCheckBox control.

Checked

Gets or set a value indicating whether theCheckBox is in the checked state.

CheckState

Gets or sets the state of theCheckBox.

ClientRectangle

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

(Inherited fromControl)
ClientSize

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

(Inherited fromControl)
Command

Gets or sets theICommand whoseExecute(Object) method will be called when theClick event is invoked.

(Inherited fromButtonBase)
CommandParameter

Gets or sets the parameter that is passed to theICommand that's assigned to theCommand property.

(Inherited fromButtonBase)
CompanyName

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

(Inherited fromControl)
Container

Gets theIContainer that contains theComponent.

(Inherited fromComponent)
ContainsFocus

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

(Inherited fromControl)
ContextMenu
Obsolete.

Gets or sets the shortcut menu associated with the control.

(Inherited fromControl)
ContextMenuStrip

Gets or sets theContextMenuStrip associated with this control.

(Inherited fromControl)
Controls

Gets the collection of controls contained within the control.

(Inherited fromControl)
Created

Gets a value indicating whether the control has been created.

(Inherited fromControl)
CreateParams

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

Cursor

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

(Inherited fromControl)
DataBindings

Gets the data bindings for the control.

(Inherited fromControl)
DataContext

Gets or sets the data context for the purpose of data binding.This is an ambient property.

(Inherited fromControl)
DefaultCursor

Gets or sets the default cursor for the control.

(Inherited fromControl)
DefaultImeMode

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

(Inherited fromButtonBase)
DefaultMargin

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

(Inherited fromControl)
DefaultMaximumSize

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

(Inherited fromControl)
DefaultMinimumSize

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

(Inherited fromControl)
DefaultPadding

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

(Inherited fromControl)
DefaultSize

Gets the default size of the control.

DesignMode

Gets a value that indicates whether theComponent is currently in design mode.

(Inherited fromComponent)
DeviceDpi

Gets the DPI value for the display device where the control is currently being displayed.

(Inherited fromControl)
DisplayRectangle

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

(Inherited fromControl)
Disposing

Gets a value indicating whether the baseControl class is in the process of disposing.

(Inherited fromControl)
Dock

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

(Inherited fromControl)
DoubleBuffered

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

(Inherited fromControl)
Enabled

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

(Inherited fromControl)
Events

Gets the list of event handlers that are attached to thisComponent.

(Inherited fromComponent)
FlatAppearance

Gets the appearance of the border and the colors used to indicate check state and mouse state.

(Inherited fromButtonBase)
FlatStyle

Gets or sets the flat style appearance of the button control.

(Inherited fromButtonBase)
Focused

Gets a value indicating whether the control has input focus.

(Inherited fromControl)
Font

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

(Inherited fromControl)
FontHeight

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

(Inherited fromControl)
ForeColor

Gets or sets the foreground color of the control.

(Inherited fromControl)
Handle

Gets the window handle that the control is bound to.

(Inherited fromControl)
HasChildren

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

(Inherited fromControl)
Height

Gets or sets the height of the control.

(Inherited fromControl)
Image

Gets or sets the image that is displayed on a button control.

(Inherited fromButtonBase)
ImageAlign

Gets or sets the alignment of the image on the button control.

(Inherited fromButtonBase)
ImageIndex

Gets or sets the image list index value of the image displayed on the button control.

(Inherited fromButtonBase)
ImageKey

Gets or sets the key accessor for the image in theImageList.

(Inherited fromButtonBase)
ImageList

Gets or sets theImageList that contains theImage displayed on a button control.

(Inherited fromButtonBase)
ImeMode

Gets or sets the Input Method Editor (IME) mode supported by this control. This property is not relevant for this class.

(Inherited fromButtonBase)
ImeModeBase

Gets or sets the IME mode of a control.

(Inherited fromControl)
InvokeRequired

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.

(Inherited fromControl)
IsAccessible

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

(Inherited fromControl)
IsAncestorSiteInDesignMode

Indicates if one of the Ancestors of this control is sited and that site in DesignMode. This property is read-only.

(Inherited fromControl)
IsDefault

Gets or sets a value indicating whether the button control is the default button.

(Inherited fromButtonBase)
IsDisposed

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

(Inherited fromControl)
IsHandleCreated

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

(Inherited fromControl)
IsMirrored

Gets a value indicating whether the control is mirrored.

(Inherited fromControl)
LayoutEngine

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

(Inherited fromControl)
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.

(Inherited fromControl)
Location

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

(Inherited fromControl)
Margin

Gets or sets the space between controls.

(Inherited fromControl)
MaximumSize

Gets or sets the size that is the upper limit thatGetPreferredSize(Size) can specify.

(Inherited fromControl)
MinimumSize

Gets or sets the size that is the lower limit thatGetPreferredSize(Size) can specify.

(Inherited fromControl)
Name

Gets or sets the name of the control.

(Inherited fromControl)
Padding

Gets or sets padding within the control.

(Inherited fromControl)
Parent

Gets or sets the parent container of the control.

(Inherited fromControl)
PreferredSize

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

(Inherited fromControl)
ProductName

Gets the product name of the assembly containing the control.

(Inherited fromControl)
ProductVersion

Gets the version of the assembly containing the control.

(Inherited fromControl)
RecreatingHandle

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

(Inherited fromControl)
Region

Gets or sets the window region associated with the control.

(Inherited fromControl)
RenderRightToLeft
Obsolete.
Obsolete.

This property is now obsolete.

(Inherited fromControl)
ResizeRedraw

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

(Inherited fromControl)
Right

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

(Inherited fromControl)
RightToLeft

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

(Inherited fromControl)
ScaleChildren

Gets a value that determines the scaling of child controls.

(Inherited fromControl)
ShowFocusCues

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

(Inherited fromControl)
ShowKeyboardCues

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

(Inherited fromControl)
Site

Gets or sets the site of the control.

(Inherited fromControl)
Size

Gets or sets the height and width of the control.

(Inherited fromControl)
TabIndex

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

(Inherited fromControl)
TabStop

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

(Inherited fromControl)
Tag

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

(Inherited fromControl)
Text

Gets or sets the text associated with this control.

(Inherited fromButtonBase)
TextAlign

Gets or sets the alignment of the text on theCheckBox control.

TextImageRelation

Gets or sets the position of text and image relative to each other.

(Inherited fromButtonBase)
ThreeState

Gets or sets a value indicating whether theCheckBox will allow three check states rather than two.

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.

(Inherited fromControl)
TopLevelControl

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

(Inherited fromControl)
UseCompatibleTextRendering

Gets or sets a value that determines whether to use theGraphics class (GDI+) or theTextRenderer class (GDI) to render text.

(Inherited fromButtonBase)
UseMnemonic

Gets or sets a value indicating whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control.

(Inherited fromButtonBase)
UseVisualStyleBackColor

Gets or sets a value that determines if the background is drawn using visual styles, if supported.

(Inherited fromButtonBase)
UseWaitCursor

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

(Inherited fromControl)
Visible

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

(Inherited fromControl)
Width

Gets or sets the width of the control.

(Inherited fromControl)
WindowTarget

This property is not relevant for this class.

(Inherited fromControl)

Methods

NameDescription
AccessibilityNotifyClients(AccessibleEvents, Int32, Int32)

Notifies the accessibility client applications of the specifiedAccessibleEvents for the specified child control .

(Inherited fromControl)
AccessibilityNotifyClients(AccessibleEvents, Int32)

Notifies the accessibility client applications of the specifiedAccessibleEvents for the specified child control.

(Inherited fromControl)
BeginInvoke(Action)

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

(Inherited fromControl)
BeginInvoke(Delegate, Object[])

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

(Inherited fromControl)
BeginInvoke(Delegate)

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

(Inherited fromControl)
BringToFront()

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

(Inherited fromControl)
Contains(Control)

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

(Inherited fromControl)
CreateAccessibilityInstance()

Creates a new accessibility object for theCheckBox control.

CreateControl()

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

(Inherited fromControl)
CreateControlsInstance()

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

(Inherited fromControl)
CreateGraphics()

Creates theGraphics for the control.

(Inherited fromControl)
CreateHandle()

Creates a handle for the control.

(Inherited fromControl)
CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited fromMarshalByRefObject)
DefWndProc(Message)

Sends the specified message to the default window procedure.

(Inherited fromControl)
DestroyHandle()

Destroys the handle associated with the control.

(Inherited fromControl)
Dispose()

Releases all resources used by theComponent.

(Inherited fromComponent)
Dispose(Boolean)

Releases the unmanaged resources used by theButtonBase and optionally releases the managed resources.

(Inherited fromButtonBase)
DoDragDrop(Object, DragDropEffects, Bitmap, Point, Boolean)

Begins a drag operation.

(Inherited fromControl)
DoDragDrop(Object, DragDropEffects)

Begins a drag-and-drop operation.

(Inherited fromControl)
DoDragDropAsJson<T>(T, DragDropEffects, Bitmap, Point, Boolean)(Inherited fromControl)
DoDragDropAsJson<T>(T, DragDropEffects)(Inherited fromControl)
DrawToBitmap(Bitmap, Rectangle)

Supports rendering to the specified bitmap.

(Inherited fromControl)
EndInvoke(IAsyncResult)

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

(Inherited fromControl)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited fromObject)
FindForm()

Retrieves the form that the control is on.

(Inherited fromControl)
Focus()

Sets input focus to the control.

(Inherited fromControl)
GetAccessibilityObjectById(Int32)

Retrieves the specifiedAccessibleObject.

(Inherited fromControl)
GetAutoSizeMode()

Retrieves a value indicating how a control will behave when itsAutoSize property is enabled.

(Inherited fromControl)
GetChildAtPoint(Point, GetChildAtPointSkip)

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

(Inherited fromControl)
GetChildAtPoint(Point)

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

(Inherited fromControl)
GetContainerControl()

Returns the nextContainerControl up the control's chain of parent controls.

(Inherited fromControl)
GetHashCode()

Serves as the default hash function.

(Inherited fromObject)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited fromMarshalByRefObject)
GetNextControl(Control, Boolean)

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

(Inherited fromControl)
GetPreferredSize(Size)

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

(Inherited fromButtonBase)
GetScaledBounds(Rectangle, SizeF, BoundsSpecified)

Retrieves the bounds within which the control is scaled.

(Inherited fromControl)
GetService(Type)

Returns an object that represents a service provided by theComponent or by itsContainer.

(Inherited fromComponent)
GetStyle(ControlStyles)

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

(Inherited fromControl)
GetTopLevel()

Determines if the control is a top-level control.

(Inherited fromControl)
GetType()

Gets theType of the current instance.

(Inherited fromObject)
Hide()

Conceals the control from the user.

(Inherited fromControl)
InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited fromMarshalByRefObject)
InitLayout()

Called after the control has been added to another container.

(Inherited fromControl)
Invalidate()

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

(Inherited fromControl)
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.

(Inherited fromControl)
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.

(Inherited fromControl)
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.

(Inherited fromControl)
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.

(Inherited fromControl)
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.

(Inherited fromControl)
Invoke(Action)

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

(Inherited fromControl)
Invoke(Delegate, Object[])

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

(Inherited fromControl)
Invoke(Delegate)

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

(Inherited fromControl)
Invoke<T>(Func<T>)

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

(Inherited fromControl)
InvokeAsync(Action, CancellationToken)

Invokes the specified synchronous callback asynchronously on the thread that owns the control's handle.

(Inherited fromControl)
InvokeAsync(Func<CancellationToken,ValueTask>, CancellationToken)

Executes the specified asynchronous callback on the thread that owns the control's handle asynchronously.

(Inherited fromControl)
InvokeAsync<T>(Func<CancellationToken,ValueTask<T>>, CancellationToken)

Executes the specified asynchronous callback on the thread that owns the control's handle.

(Inherited fromControl)
InvokeAsync<T>(Func<T>, CancellationToken)

Invokes the specified synchronous callback asynchronously on the thread that owns the control's handle.

(Inherited fromControl)
InvokeGotFocus(Control, EventArgs)

Raises theGotFocus event for the specified control.

(Inherited fromControl)
InvokeLostFocus(Control, EventArgs)

Raises theLostFocus event for the specified control.

(Inherited fromControl)
InvokeOnClick(Control, EventArgs)

Raises theClick event for the specified control.

(Inherited fromControl)
InvokePaint(Control, PaintEventArgs)

Raises thePaint event for the specified control.

(Inherited fromControl)
InvokePaintBackground(Control, PaintEventArgs)

Raises thePaintBackground event for the specified control.

(Inherited fromControl)
IsInputChar(Char)

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

(Inherited fromControl)
IsInputKey(Keys)

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

(Inherited fromControl)
LogicalToDeviceUnits(Int32)

Converts a Logical DPI value to its equivalent DeviceUnit DPI value.

(Inherited fromControl)
LogicalToDeviceUnits(Size)

Transforms a size from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for width and height.

(Inherited fromControl)
MemberwiseClone()

Creates a shallow copy of the currentObject.

(Inherited fromObject)
MemberwiseClone(Boolean)

Creates a shallow copy of the currentMarshalByRefObject object.

(Inherited fromMarshalByRefObject)
NotifyInvalidate(Rectangle)

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

(Inherited fromControl)
OnAppearanceChanged(EventArgs)

Raises theAppearanceChanged event.

OnAutoSizeChanged(EventArgs)

Raises theAutoSizeChanged event.

(Inherited fromControl)
OnBackColorChanged(EventArgs)(Inherited fromButtonBase)
OnBackgroundImageChanged(EventArgs)

Raises theBackgroundImageChanged event.

(Inherited fromControl)
OnBackgroundImageLayoutChanged(EventArgs)

Raises theBackgroundImageLayoutChanged event.

(Inherited fromControl)
OnBindingContextChanged(EventArgs)

Raises theBindingContextChanged event.

(Inherited fromControl)
OnCausesValidationChanged(EventArgs)

Raises theCausesValidationChanged event.

(Inherited fromControl)
OnChangeUICues(UICuesEventArgs)

Raises theChangeUICues event.

(Inherited fromControl)
OnCheckedChanged(EventArgs)

Raises theCheckedChanged event.

OnCheckStateChanged(EventArgs)

Raises theCheckStateChanged event.

OnClick(EventArgs)

Raises theClick event.

OnClientSizeChanged(EventArgs)

Raises theClientSizeChanged event.

(Inherited fromControl)
OnCommandCanExecuteChanged(EventArgs)

Raises theCommandCanExecuteChanged event.

(Inherited fromButtonBase)
OnCommandChanged(EventArgs)

Raises theCommandChanged event.

(Inherited fromButtonBase)
OnCommandParameterChanged(EventArgs)

Raises theCommandParameterChanged event.

(Inherited fromButtonBase)
OnContextMenuChanged(EventArgs)
Obsolete.

Raises theContextMenuChanged event.

(Inherited fromControl)
OnContextMenuStripChanged(EventArgs)

Raises theContextMenuStripChanged event.

(Inherited fromControl)
OnControlAdded(ControlEventArgs)

Raises theControlAdded event.

(Inherited fromControl)
OnControlRemoved(ControlEventArgs)

Raises theControlRemoved event.

(Inherited fromControl)
OnCreateControl()

Raises theCreateControl() method.

(Inherited fromControl)
OnCursorChanged(EventArgs)

Raises theCursorChanged event.

(Inherited fromControl)
OnDataContextChanged(EventArgs)(Inherited fromControl)
OnDockChanged(EventArgs)

Raises theDockChanged event.

(Inherited fromControl)
OnDoubleClick(EventArgs)

Raises theDoubleClick event.

(Inherited fromControl)
OnDpiChangedAfterParent(EventArgs)

Raises theDpiChangedAfterParent event.

(Inherited fromControl)
OnDpiChangedBeforeParent(EventArgs)

Raises theDpiChangedBeforeParent event.

(Inherited fromControl)
OnDragDrop(DragEventArgs)

Raises theDragDrop event.

(Inherited fromControl)
OnDragEnter(DragEventArgs)

Raises theDragEnter event.

(Inherited fromControl)
OnDragLeave(EventArgs)

Raises theDragLeave event.

(Inherited fromControl)
OnDragOver(DragEventArgs)

Raises theDragOver event.

(Inherited fromControl)
OnEnabledChanged(EventArgs)

Raises theEnabledChanged event.

(Inherited fromButtonBase)
OnEnter(EventArgs)

Raises theEnter event.

(Inherited fromControl)
OnFontChanged(EventArgs)

Raises theFontChanged event.

(Inherited fromControl)
OnForeColorChanged(EventArgs)(Inherited fromButtonBase)
OnGiveFeedback(GiveFeedbackEventArgs)

Raises theGiveFeedback event.

(Inherited fromControl)
OnGotFocus(EventArgs)

Raises theGotFocus event.

(Inherited fromButtonBase)
OnHandleCreated(EventArgs)

Raises theHandleCreated event.

OnHandleDestroyed(EventArgs)

Raises theHandleDestroyed event.

(Inherited fromControl)
OnHelpRequested(HelpEventArgs)

Raises theHelpRequested event.

(Inherited fromControl)
OnImeModeChanged(EventArgs)

Raises theImeModeChanged event.

(Inherited fromControl)
OnInvalidated(InvalidateEventArgs)

Raises theInvalidated event.

(Inherited fromControl)
OnKeyDown(KeyEventArgs)

Raises theOnKeyUp(KeyEventArgs) event.

OnKeyDown(KeyEventArgs)

Raises theOnKeyUp(KeyEventArgs) event.

(Inherited fromButtonBase)
OnKeyPress(KeyPressEventArgs)

Raises theKeyPress event.

(Inherited fromControl)
OnKeyUp(KeyEventArgs)

Raises theOnKeyUp(KeyEventArgs) event.

(Inherited fromButtonBase)
OnLayout(LayoutEventArgs)

Raises theLayout event.

(Inherited fromControl)
OnLeave(EventArgs)

Raises theLeave event.

(Inherited fromControl)
OnLocationChanged(EventArgs)

Raises theLocationChanged event.

(Inherited fromControl)
OnLostFocus(EventArgs)

Raises theOnLostFocus(EventArgs) event.

(Inherited fromButtonBase)
OnMarginChanged(EventArgs)

Raises theMarginChanged event.

(Inherited fromControl)
OnMouseCaptureChanged(EventArgs)

Raises theMouseCaptureChanged event.

(Inherited fromControl)
OnMouseClick(MouseEventArgs)

Raises theMouseClick event.

(Inherited fromControl)
OnMouseDoubleClick(MouseEventArgs)

Raises theMouseDoubleClick event.

(Inherited fromControl)
OnMouseDown(MouseEventArgs)

Raises theOnMouseDown(MouseEventArgs) event.

(Inherited fromButtonBase)
OnMouseEnter(EventArgs)

Raises theOnMouseEnter(EventArgs) event.

(Inherited fromButtonBase)
OnMouseHover(EventArgs)

Raises theMouseHover event.

(Inherited fromControl)
OnMouseLeave(EventArgs)

Raises theOnMouseLeave(EventArgs) event.

(Inherited fromButtonBase)
OnMouseMove(MouseEventArgs)

Raises theOnMouseMove(MouseEventArgs) event.

(Inherited fromButtonBase)
OnMouseUp(MouseEventArgs)

Raises the OnMouseUp event.

OnMouseWheel(MouseEventArgs)

Raises theMouseWheel event.

(Inherited fromControl)
OnMove(EventArgs)

Raises theMove event.

(Inherited fromControl)
OnNotifyMessage(Message)

Notifies the control of Windows messages.

(Inherited fromControl)
OnPaddingChanged(EventArgs)

Raises thePaddingChanged event.

(Inherited fromControl)
OnPaint(PaintEventArgs)

Raises theOnPaint(PaintEventArgs) event.

(Inherited fromButtonBase)
OnPaintBackground(PaintEventArgs)

Paints the background of the control.

(Inherited fromControl)
OnParentBackColorChanged(EventArgs)

Raises theBackColorChanged event when theBackColor property value of the control's container changes.

(Inherited fromControl)
OnParentBackgroundImageChanged(EventArgs)

Raises theBackgroundImageChanged event when theBackgroundImage property value of the control's container changes.

(Inherited fromControl)
OnParentBindingContextChanged(EventArgs)

Raises theBindingContextChanged event when theBindingContext property value of the control's container changes.

(Inherited fromControl)
OnParentChanged(EventArgs)

Raises theParentChanged event.

(Inherited fromButtonBase)
OnParentCursorChanged(EventArgs)

Raises theCursorChanged event.

(Inherited fromControl)
OnParentDataContextChanged(EventArgs)(Inherited fromControl)
OnParentEnabledChanged(EventArgs)

Raises theEnabledChanged event when theEnabled property value of the control's container changes.

(Inherited fromControl)
OnParentFontChanged(EventArgs)

Raises theFontChanged event when theFont property value of the control's container changes.

(Inherited fromControl)
OnParentForeColorChanged(EventArgs)

Raises theForeColorChanged event when theForeColor property value of the control's container changes.

(Inherited fromControl)
OnParentRightToLeftChanged(EventArgs)

Raises theRightToLeftChanged event when theRightToLeft property value of the control's container changes.

(Inherited fromControl)
OnParentVisibleChanged(EventArgs)

Raises theVisibleChanged event when theVisible property value of the control's container changes.

(Inherited fromControl)
OnPreviewKeyDown(PreviewKeyDownEventArgs)

Raises thePreviewKeyDown event.

(Inherited fromControl)
OnPrint(PaintEventArgs)

Raises thePaint event.

(Inherited fromControl)
OnQueryContinueDrag(QueryContinueDragEventArgs)

Raises theQueryContinueDrag event.

(Inherited fromControl)
OnRegionChanged(EventArgs)

Raises theRegionChanged event.

(Inherited fromControl)
OnRequestCommandExecute(EventArgs)

Called in the context ofOnClick(EventArgs) to invokeExecute(Object) if the context allows.

(Inherited fromButtonBase)
OnResize(EventArgs)

Raises theResize event.

(Inherited fromControl)
OnRightToLeftChanged(EventArgs)

Raises theRightToLeftChanged event.

(Inherited fromControl)
OnSizeChanged(EventArgs)

Raises theSizeChanged event.

(Inherited fromControl)
OnStyleChanged(EventArgs)

Raises theStyleChanged event.

(Inherited fromControl)
OnSystemColorsChanged(EventArgs)

Raises theSystemColorsChanged event.

(Inherited fromControl)
OnTabIndexChanged(EventArgs)

Raises theTabIndexChanged event.

(Inherited fromControl)
OnTabStopChanged(EventArgs)

Raises theTabStopChanged event.

(Inherited fromControl)
OnTextChanged(EventArgs)

Raises theTextChanged event.

(Inherited fromButtonBase)
OnValidated(EventArgs)

Raises theValidated event.

(Inherited fromControl)
OnValidating(CancelEventArgs)

Raises theValidating event.

(Inherited fromControl)
OnVisibleChanged(EventArgs)

Raises theVisibleChanged event.

(Inherited fromButtonBase)
PerformLayout()

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

(Inherited fromControl)
PerformLayout(Control, String)

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

(Inherited fromControl)
PointToClient(Point)

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

(Inherited fromControl)
PointToScreen(Point)

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

(Inherited fromControl)
PreProcessControlMessage(Message)

Preprocesses keyboard or input messages within the message loop before they are dispatched.

(Inherited fromControl)
PreProcessMessage(Message)

Preprocesses keyboard or input messages within the message loop before they are dispatched.

(Inherited fromControl)
ProcessCmdKey(Message, Keys)

Processes a command key.

(Inherited fromControl)
ProcessDialogChar(Char)

Processes a dialog character.

(Inherited fromControl)
ProcessDialogKey(Keys)

Processes a dialog key.

(Inherited fromControl)
ProcessKeyEventArgs(Message)

Processes a key message and generates the appropriate control events.

(Inherited fromControl)
ProcessKeyMessage(Message)

Processes a keyboard message.

(Inherited fromControl)
ProcessKeyPreview(Message)

Previews a keyboard message.

(Inherited fromControl)
ProcessMnemonic(Char)

Processes a mnemonic character.

RaiseDragEvent(Object, DragEventArgs)

Raises the appropriate drag event.

(Inherited fromControl)
RaiseKeyEvent(Object, KeyEventArgs)

Raises the appropriate key event.

(Inherited fromControl)
RaiseMouseEvent(Object, MouseEventArgs)

Raises the appropriate mouse event.

(Inherited fromControl)
RaisePaintEvent(Object, PaintEventArgs)

Raises the appropriate paint event.

(Inherited fromControl)
RecreateHandle()

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

(Inherited fromControl)
RectangleToClient(Rectangle)

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

(Inherited fromControl)
RectangleToScreen(Rectangle)

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

(Inherited fromControl)
Refresh()

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

(Inherited fromControl)
RescaleConstantsForDpi(Int32, Int32)

Provides constants for rescaling theCheckBox control when a DPI change occurs.

RescaleConstantsForDpi(Int32, Int32)

Provides constants for rescaling the control when a DPI change occurs.

(Inherited fromControl)
ResetBackColor()

Resets theBackColor property to its default value.

(Inherited fromControl)
ResetBindings()

Causes a control bound to theBindingSource to reread all the items in the list and refresh their displayed values.

(Inherited fromControl)
ResetCursor()

Resets theCursor property to its default value.

(Inherited fromControl)
ResetFlagsandPaint()

Resets theButton control to the state before it is pressed and redraws it.

(Inherited fromButtonBase)
ResetFont()

Resets theFont property to its default value.

(Inherited fromControl)
ResetForeColor()

Resets theForeColor property to its default value.

(Inherited fromControl)
ResetImeMode()

Resets theImeMode property to its default value.

(Inherited fromControl)
ResetMouseEventArgs()

Resets the control to handle theMouseLeave event.

(Inherited fromControl)
ResetRightToLeft()

Resets theRightToLeft property to its default value.

(Inherited fromControl)
ResetText()

Resets theText property to its default value (Empty).

(Inherited fromControl)
ResumeLayout()

Resumes usual layout logic.

(Inherited fromControl)
ResumeLayout(Boolean)

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

(Inherited fromControl)
RtlTranslateAlignment(ContentAlignment)

Converts the specifiedContentAlignment to the appropriateContentAlignment to support right-to-left text.

(Inherited fromControl)
RtlTranslateAlignment(HorizontalAlignment)

Converts the specifiedHorizontalAlignment to the appropriateHorizontalAlignment to support right-to-left text.

(Inherited fromControl)
RtlTranslateAlignment(LeftRightAlignment)

Converts the specifiedLeftRightAlignment to the appropriateLeftRightAlignment to support right-to-left text.

(Inherited fromControl)
RtlTranslateContent(ContentAlignment)

Converts the specifiedContentAlignment to the appropriateContentAlignment to support right-to-left text.

(Inherited fromControl)
RtlTranslateHorizontal(HorizontalAlignment)

Converts the specifiedHorizontalAlignment to the appropriateHorizontalAlignment to support right-to-left text.

(Inherited fromControl)
RtlTranslateLeftRight(LeftRightAlignment)

Converts the specifiedLeftRightAlignment to the appropriateLeftRightAlignment to support right-to-left text.

(Inherited fromControl)
Scale(Single, Single)
Obsolete.
Obsolete.

Scales the entire control and any child controls.

(Inherited fromControl)
Scale(Single)
Obsolete.
Obsolete.

Scales the control and any child controls.

(Inherited fromControl)
Scale(SizeF)

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

(Inherited fromControl)
ScaleBitmapLogicalToDevice(Bitmap)

Scales a logical bitmap value to it's equivalent device unit value when a DPI change occurs.

(Inherited fromControl)
ScaleControl(SizeF, BoundsSpecified)

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

(Inherited fromControl)
ScaleCore(Single, Single)

This method is not relevant for this class.

(Inherited fromControl)
Select()

Activates the control.

(Inherited fromControl)
Select(Boolean, Boolean)

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

(Inherited fromControl)
SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean)

Activates the next control.

(Inherited fromControl)
SendToBack()

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

(Inherited fromControl)
SetAutoSizeMode(AutoSizeMode)

Sets a value indicating how a control will behave when itsAutoSize property is enabled.

(Inherited fromControl)
SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified)

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

(Inherited fromControl)
SetBounds(Int32, Int32, Int32, Int32)

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

(Inherited fromControl)
SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

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

(Inherited fromControl)
SetClientSizeCore(Int32, Int32)

Sets the size of the client area of the control.

(Inherited fromControl)
SetStyle(ControlStyles, Boolean)

Sets a specifiedControlStyles flag to eithertrue orfalse.

(Inherited fromControl)
SetTopLevel(Boolean)

Sets the control as the top-level control.

(Inherited fromControl)
SetVisibleCore(Boolean)

Sets the control to the specified visible state.

(Inherited fromControl)
Show()

Displays the control to the user.

(Inherited fromControl)
SizeFromClientSize(Size)

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

(Inherited fromControl)
SuspendLayout()

Temporarily suspends the layout logic for the control.

(Inherited fromControl)
ToString()

Returns a string that represents the currentCheckBox control.

Update()

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

(Inherited fromControl)
UpdateBounds()

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

(Inherited fromControl)
UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)

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

(Inherited fromControl)
UpdateBounds(Int32, Int32, Int32, Int32)

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

(Inherited fromControl)
UpdateStyles()

Forces the assigned styles to be reapplied to the control.

(Inherited fromControl)
UpdateZOrder()

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

(Inherited fromControl)
WndProc(Message)

Processes Windows messages.

(Inherited fromButtonBase)

Events

NameDescription
AppearanceChanged

Occurs when the value of theAppearance property changes.

AutoSizeChanged

Occurs when the value of theAutoSize property changes.

(Inherited fromButtonBase)
BackColorChanged

Occurs when the value of theBackColor property changes.

(Inherited fromControl)
BackgroundImageChanged

Occurs when the value of theBackgroundImage property changes.

(Inherited fromControl)
BackgroundImageLayoutChanged

Occurs when theBackgroundImageLayout property changes.

(Inherited fromControl)
BindingContextChanged

Occurs when the value of theBindingContext property changes.

(Inherited fromControl)
CausesValidationChanged

Occurs when the value of theCausesValidation property changes.

(Inherited fromControl)
ChangeUICues

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

(Inherited fromControl)
CheckedChanged

Occurs when the value of theChecked property changes.

CheckStateChanged

Occurs when the value of theCheckState property changes.

Click

Occurs when the control is clicked.

(Inherited fromControl)
ClientSizeChanged

Occurs when the value of theClientSize property changes.

(Inherited fromControl)
CommandCanExecuteChanged

Occurs when theCanExecute(Object) status of theICommand that's assigned to theCommand property has changed.

(Inherited fromButtonBase)
CommandChanged

Occurs when the assignedICommand of theCommand property has changed.

(Inherited fromButtonBase)
CommandParameterChanged

Occurs when the value of theCommandParameter property has changed.

(Inherited fromButtonBase)
ContextMenuChanged
Obsolete.

Occurs when the value of theContextMenu property changes.

(Inherited fromControl)
ContextMenuStripChanged

Occurs when the value of theContextMenuStrip property changes.

(Inherited fromControl)
ControlAdded

Occurs when a new control is added to theControl.ControlCollection.

(Inherited fromControl)
ControlRemoved

Occurs when a control is removed from theControl.ControlCollection.

(Inherited fromControl)
CursorChanged

Occurs when the value of theCursor property changes.

(Inherited fromControl)
DataContextChanged

Occurs when the value of theDataContext property changes.

(Inherited fromControl)
Disposed

Occurs when the component is disposed by a call to theDispose() method.

(Inherited fromComponent)
DockChanged

Occurs when the value of theDock property changes.

(Inherited fromControl)
DoubleClick

Occurs when the user double-clicks theCheckBox control.

DpiChangedAfterParent

Occurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed.

(Inherited fromControl)
DpiChangedBeforeParent

Occurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred.

(Inherited fromControl)
DragDrop

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

(Inherited fromControl)
DragEnter

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

(Inherited fromControl)
DragLeave

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

(Inherited fromControl)
DragOver

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

(Inherited fromControl)
EnabledChanged

Occurs when theEnabled property value has changed.

(Inherited fromControl)
Enter

Occurs when the control is entered.

(Inherited fromControl)
FontChanged

Occurs when theFont property value changes.

(Inherited fromControl)
ForeColorChanged

Occurs when theForeColor property value changes.

(Inherited fromControl)
GiveFeedback

Occurs during a drag operation.

(Inherited fromControl)
GotFocus

Occurs when the control receives focus.

(Inherited fromControl)
HandleCreated

Occurs when a handle is created for the control.

(Inherited fromControl)
HandleDestroyed

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

(Inherited fromControl)
HelpRequested

Occurs when the user requests help for a control.

(Inherited fromControl)
ImeModeChanged

Occurs when theImeMode property is changed. This event is not relevant for this class.

(Inherited fromButtonBase)
Invalidated

Occurs when a control's display requires redrawing.

(Inherited fromControl)
KeyDown

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

(Inherited fromControl)
KeyPress

Occurs when a character, space, or backspace key is pressed while the control has focus.

(Inherited fromControl)
KeyUp

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

(Inherited fromControl)
Layout

Occurs when a control should reposition its child controls.

(Inherited fromControl)
Leave

Occurs when the input focus leaves the control.

(Inherited fromControl)
LocationChanged

Occurs when theLocation property value has changed.

(Inherited fromControl)
LostFocus

Occurs when the control loses focus.

(Inherited fromControl)
MarginChanged

Occurs when the control's margin changes.

(Inherited fromControl)
MouseCaptureChanged

Occurs when the control loses mouse capture.

(Inherited fromControl)
MouseClick

Occurs when the control is clicked by the mouse.

(Inherited fromControl)
MouseDoubleClick

Occurs when the user double-clicks theCheckBox control.

MouseDown

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

(Inherited fromControl)
MouseEnter

Occurs when the mouse pointer enters the control.

(Inherited fromControl)
MouseHover

Occurs when the mouse pointer rests on the control.

(Inherited fromControl)
MouseLeave

Occurs when the mouse pointer leaves the control.

(Inherited fromControl)
MouseMove

Occurs when the mouse pointer is moved over the control.

(Inherited fromControl)
MouseUp

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

(Inherited fromControl)
MouseWheel

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

(Inherited fromControl)
Move

Occurs when the control is moved.

(Inherited fromControl)
PaddingChanged

Occurs when the control's padding changes.

(Inherited fromControl)
Paint

Occurs when the control is redrawn.

(Inherited fromControl)
ParentChanged

Occurs when theParent property value changes.

(Inherited fromControl)
PreviewKeyDown

Occurs before theKeyDown event when a key is pressed while focus is on this control.

(Inherited fromControl)
QueryAccessibilityHelp

Occurs whenAccessibleObject is providing help to accessibility applications.

(Inherited fromControl)
QueryContinueDrag

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

(Inherited fromControl)
RegionChanged

Occurs when the value of theRegion property changes.

(Inherited fromControl)
Resize

Occurs when the control is resized.

(Inherited fromControl)
RightToLeftChanged

Occurs when theRightToLeft property value changes.

(Inherited fromControl)
SizeChanged

Occurs when theSize property value changes.

(Inherited fromControl)
StyleChanged

Occurs when the control style changes.

(Inherited fromControl)
SystemColorsChanged

Occurs when the system colors change.

(Inherited fromControl)
TabIndexChanged

Occurs when theTabIndex property value changes.

(Inherited fromControl)
TabStopChanged

Occurs when theTabStop property value changes.

(Inherited fromControl)
TextChanged

Occurs when theText property value changes.

(Inherited fromControl)
Validated

Occurs when the control is finished validating.

(Inherited fromControl)
Validating

Occurs when the control is validating.

(Inherited fromControl)
VisibleChanged

Occurs when theVisible property value changes.

(Inherited fromControl)

Explicit Interface Implementations

NameDescription
IDropTarget.OnDragDrop(DragEventArgs)

Raises theDragDrop event.

(Inherited fromControl)
IDropTarget.OnDragEnter(DragEventArgs)

Raises theDragEnter event.

(Inherited fromControl)
IDropTarget.OnDragLeave(EventArgs)

Raises theDragLeave event.

(Inherited fromControl)
IDropTarget.OnDragOver(DragEventArgs)

Raises theDragOver event.

(Inherited fromControl)

Applies to

See also

Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, seeour contributor guide.

Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?