Form Events
MSDN Home
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
Class Library Reference
System.Windows.Forms
Form Class
Form Events
Activated Event
AutoSizeChanged Event
AutoValidateChanged Event
Closed Event
Closing Event
Deactivate Event
FormClosed Event
FormClosing Event
HelpButtonClicked Event
InputLanguageChanged Event
InputLanguageChanging Event
Load Event
MarginChanged Event
MaximizedBoundsChanged Event
MaximumSizeChanged Event
MdiChildActivate Event
MenuComplete Event
MenuStart Event
MinimumSizeChanged Event
ResizeBegin Event
ResizeEnd Event
RightToLeftLayoutChanged Event
Shown Event
TabIndexChanged Event
TabStopChanged Event
Form Class
Form Members
Form Constructor
Form Methods
Form Properties
Form Events
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.NET Framework Class Library
Form Events
Public Events
Name
Description
Activated
Occurs when the form is activated in code or by the user.
AutoSizeChanged
AutoValidateChanged
BackColorChanged
Occurs when the value of the
BackColor
property changes. (Inherited from
Control
.)
BackgroundImageChanged
Occurs when the value of the
BackgroundImage
property changes. (Inherited from
Control
.)
BackgroundImageLayoutChanged
Occurs when the
BackgroundImageLayout
property changes. (Inherited from
Control
.)
BindingContextChanged
Occurs when the value of the
BindingContext
property changes. (Inherited from
Control
.)
CausesValidationChanged
Occurs when the value of the
CausesValidation
property changes. (Inherited from
Control
.)
ChangeUICues
Occurs when the focus or keyboard user interface (UI) cues change. (Inherited from
Control
.)
Click
Occurs when the control is clicked. (Inherited from
Control
.)
ClientSizeChanged
Occurs when the value of the
ClientSize
property changes. (Inherited from
Control
.)
Closed
Occurs when the form is closed.
Closing
Occurs when the form is closing.
ContextMenuChanged
Occurs when the value of the
ContextMenu
property changes. (Inherited from
Control
.)
ContextMenuStripChanged
Occurs when the value of the
ContextMenuStrip
property changes. (Inherited from
Control
.)
ControlAdded
Occurs when a new control is added to the
Control.ControlCollection
. (Inherited from
Control
.)
ControlRemoved
Occurs when a control is removed from the
Control.ControlCollection
. (Inherited from
Control
.)
CursorChanged
Occurs when the value of the
Cursor
property changes. (Inherited from
Control
.)
Deactivate
Occurs when the form loses focus and is no longer the active form.
Disposed
Adds an event handler to listen to the
Disposed
event on the component. (Inherited from
Component
.)
DockChanged
Occurs when the value of the
Dock
property changes. (Inherited from
Control
.)
DoubleClick
Occurs when the control is double-clicked. (Inherited from
Control
.)
DragDrop
Occurs when a drag-and-drop operation is completed. (Inherited from
Control
.)
DragEnter
Occurs when an object is dragged into the control's bounds. (Inherited from
Control
.)
DragLeave
Occurs when an object is dragged out of the control's bounds. (Inherited from
Control
.)
DragOver
Occurs when an object is dragged over the control's bounds. (Inherited from
Control
.)
EnabledChanged
Occurs when the
Enabled
property value has changed. (Inherited from
Control
.)
Enter
Occurs when the control is entered. (Inherited from
Control
.)
FontChanged
Occurs when the
Font
property value changes. (Inherited from
Control
.)
ForeColorChanged
Occurs when the
ForeColor
property value changes. (Inherited from
Control
.)
FormClosed
Occurs after the form is closed.
FormClosing
Occurs before the form is closed.
GiveFeedback
Occurs during a drag operation. (Inherited from
Control
.)
GotFocus
Occurs when the control receives focus. (Inherited from
Control
.)
HandleCreated
Occurs when a handle is created for the control. (Inherited from
Control
.)
HandleDestroyed
Occurs when the control's handle is in the process of being destroyed. (Inherited from
Control
.)
HelpButtonClicked
Occurs when the
Help
button is clicked.
HelpRequested
Occurs when the user requests help for a control. (Inherited from
Control
.)
ImeModeChanged
Occurs when the
ImeMode
property has changed. (Inherited from
Control
.)
InputLanguageChanged
Occurs after the input language of the form has changed.
InputLanguageChanging
Occurs when the user attempts to change the input language for the form.
Invalidated
Occurs when a control's display requires redrawing. (Inherited from
Control
.)
KeyDown
Occurs when a key is pressed while the control has focus. (Inherited from
Control
.)
KeyPress
Occurs when a key is pressed while the control has focus. (Inherited from
Control
.)
KeyUp
Occurs when a key is released while the control has focus. (Inherited from
Control
.)
Layout
Occurs when a control should reposition its child controls. (Inherited from
Control
.)
Leave
Occurs when the input focus leaves the control. (Inherited from
Control
.)
Load
Occurs before a form is displayed for the first time.
LocationChanged
Occurs when the
Location
property value has changed. (Inherited from
Control
.)
LostFocus
Occurs when the control loses focus. (Inherited from
Control
.)
MarginChanged
MaximizedBoundsChanged
Occurs when the value of the
MaximizedBounds
property has changed.
MaximumSizeChanged
Occurs when the value of the
MaximumSize
property has changed.
MdiChildActivate
Occurs when a multiple-document interface (MDI) child form is activated or closed within an MDI application.
MenuComplete
Occurs when the menu of a form loses focus.
MenuStart
Occurs when the menu of a form receives focus.
MinimumSizeChanged
Occurs when the value of the
MinimumSize
property has changed.
MouseCaptureChanged
Occurs when the control loses mouse capture. (Inherited from
Control
.)
MouseClick
Occurs when the control is clicked by the mouse. (Inherited from
Control
.)
MouseDoubleClick
Occurs when the control is double clicked by the mouse. (Inherited from
Control
.)
MouseDown
Occurs when the mouse pointer is over the control and a mouse button is pressed. (Inherited from
Control
.)
MouseEnter
Occurs when the mouse pointer enters the control. (Inherited from
Control
.)
MouseHover
Occurs when the mouse pointer rests on the control. (Inherited from
Control
.)
MouseLeave
Occurs when the mouse pointer leaves the control. (Inherited from
Control
.)
MouseMove
Occurs when the mouse pointer is moved over the control. (Inherited from
Control
.)
MouseUp
Occurs when the mouse pointer is over the control and a mouse button is released. (Inherited from
Control
.)
MouseWheel
Occurs when the mouse wheel moves while the control has focus. (Inherited from
Control
.)
Move
Occurs when the control is moved. (Inherited from
Control
.)
PaddingChanged
Occurs when the control's padding changes. (Inherited from
Control
.)
Paint
Occurs when the control is redrawn. (Inherited from
Control
.)
ParentChanged
Occurs when the
Parent
property value changes. (Inherited from
Control
.)
PreviewKeyDown
Occurs before the
KeyDown
event when a key is pressed while focus is on this control. (Inherited from
Control
.)
QueryAccessibilityHelp
Occurs when
AccessibleObject
is providing help to accessibility applications. (Inherited from
Control
.)
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 from
Control
.)
RegionChanged
Occurs when the value of the
Region
property changes. (Inherited from
Control
.)
Resize
Occurs when the control is resized. (Inherited from
Control
.)
ResizeBegin
Occurs when a form enters resizing mode.
ResizeEnd
Occurs when a form exits resizing mode.
RightToLeftChanged
Occurs when the
RightToLeft
property value changes. (Inherited from
Control
.)
RightToLeftLayoutChanged
Occurs after the value of the
RightToLeftLayout
property changes.
Scroll
Occurs when the user or code scrolls through the client area. (Inherited from
ScrollableControl
.)
Shown
Occurs whenever the form is first displayed.
SizeChanged
Occurs when the
Size
property value changes. (Inherited from
Control
.)
StyleChanged
Occurs when the control style changes. (Inherited from
Control
.)
SystemColorsChanged
Occurs when the system colors change. (Inherited from
Control
.)
TabIndexChanged
Occurs when the value of the
TabIndex
property changes.
TabStopChanged
TextChanged
Occurs when the
Text
property value changes. (Inherited from
Control
.)
Validated
Occurs when the control is finished validating. (Inherited from
Control
.)
Validating
Occurs when the control is validating. (Inherited from
Control
.)
VisibleChanged
Occurs when the
Visible
property value changes. (Inherited from
Control
.)
Top
See Also
Reference
Form Class
System.Windows.Forms Namespace
Tags :
Community Content
Desican
Order Of Events
http://msdn.microsoft.com/en-us/library/86faxx0d(VS.80).aspx
Tags :