다음을 통해 공유


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

Concepts

Overriding the OnPaint Method
Handling User Input
Defining an Event in Windows Forms Controls

Other Resources

Handling and Raising Events