Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Events in Windows Forms Controls

A Windows Forms control inherits more than sixty events from System.Windows.Forms.Control. These include the Paint event, which causes a control to be drawn, events related to displaying a window, such as the Resize and Layout events, and low-level mouse and keyboard events. Some low-level events are synthesized by Control into semantic events such as Click and DoubleClick. For details about inherited events, see Control.

If your custom control needs to override inherited event functionality, override the inherited OnEventName method instead of attaching a delegate. If you are not familiar with the event model in the .NET Framework, see Raising Events from a Component.

See Also

Community Additions

© 2015 Microsoft