Control Events
MSDN Home
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.Windows.Forms Namespace
Control Class
Control Events
AutoSizeChanged Event
BackColorChanged Event
BackgroundImageChanged Event
BackgroundImageLayoutChanged E ...
BindingContextChanged Event
CausesValidationChanged Event
ChangeUICues Event
Click Event
ClientSizeChanged Event
ContextMenuChanged Event
ContextMenuStripChanged Event
ControlAdded Event
ControlRemoved Event
CursorChanged Event
DockChanged Event
DoubleClick Event
DragDrop Event
DragEnter Event
DragLeave Event
DragOver Event
EnabledChanged Event
Enter Event
FontChanged Event
ForeColorChanged Event
GiveFeedback Event
GotFocus Event
HandleCreated Event
HandleDestroyed Event
HelpRequested Event
ImeModeChanged Event
Invalidated Event
KeyDown Event
KeyPress Event
KeyUp Event
Layout Event
Leave Event
LocationChanged Event
LostFocus Event
MarginChanged Event
MouseCaptureChanged Event
MouseClick Event
MouseDoubleClick Event
MouseDown Event
MouseEnter Event
MouseHover Event
MouseLeave Event
MouseMove Event
MouseUp Event
MouseWheel Event
Move Event
PaddingChanged Event
Paint Event
ParentChanged Event
PreviewKeyDown Event
QueryAccessibilityHelp Event
QueryContinueDrag Event
RegionChanged Event
Resize Event
RightToLeftChanged Event
SizeChanged Event
StyleChanged Event
SystemColorsChanged Event
TabIndexChanged Event
TabStopChanged Event
TextChanged Event
Validated Event
Validating Event
VisibleChanged Event
Control Class
Control Members
Control Constructor
Control Methods
Control Properties
Control Events
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.NET Framework Class Library
Control Events
The
Control
type exposes the following members.
Events
Name
Description
AutoSizeChanged
Infrastructure.
This event is not relevant for this class.
BackColorChanged
Occurs when the value of the
BackColor
property changes.
BackgroundImageChanged
Occurs when the value of the
BackgroundImage
property changes.
BackgroundImageLayoutChanged
Occurs when the
BackgroundImageLayout
property changes.
BindingContextChanged
Occurs when the value of the
BindingContext
property changes.
CausesValidationChanged
Occurs when the value of the
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
ClientSize
property changes.
ContextMenuChanged
Occurs when the value of the
ContextMenu
property changes.
ContextMenuStripChanged
Occurs when the value of the
ContextMenuStrip
property changes.
ControlAdded
Occurs when a new control is added to the
Control
.
.
::
.
ControlCollection
.
ControlRemoved
Occurs when a control is removed from the
Control
.
.
::
.
ControlCollection
.
CursorChanged
Occurs when the value of the
Cursor
property changes.
Disposed
Occurs when the component is disposed by a call to the
Dispose
method.
(Inherited from
Component
.)
DockChanged
Occurs when the value of the
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
Enabled
property value has changed.
Enter
Occurs when the control is entered.
FontChanged
Occurs when the
Font
property value changes.
ForeColorChanged
Occurs when the
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
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
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 or gains 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
Parent
property value changes.
PreviewKeyDown
Occurs before the
KeyDown
event when a key is pressed while focus is on this control.
QueryAccessibilityHelp
Occurs when
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
Region
property changes.
Resize
Occurs when the control is resized.
RightToLeftChanged
Occurs when the
RightToLeft
property value changes.
SizeChanged
Occurs when the
Size
property value changes.
StyleChanged
Occurs when the control style changes.
SystemColorsChanged
Occurs when the system colors change.
TabIndexChanged
Occurs when the
TabIndex
property value changes.
TabStopChanged
Occurs when the
TabStop
property value changes.
TextChanged
Occurs when the
Text
property value changes.
Validated
Occurs when the control is finished validating.
Validating
Occurs when the control is validating.
VisibleChanged
Occurs when the
Visible
property value changes.
Top
See Also
Reference
Control Class
System.Windows.Forms Namespace
Tags :