Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/events-in-windows-forms-controls.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.6 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
Events in Controls 03/30/2017
events [Windows Forms], custom controls (using code)
custom controls [Windows Forms], events overview (using code)
7e3d1379-87aa-437c-afce-c99454eff30e

Events in Windows Forms Controls

A Windows Forms control inherits more than sixty events from xref:System.Windows.Forms.Control?displayProperty=nameWithType. These include the xref:System.Windows.Forms.Control.Paint event, which causes a control to be drawn, events related to displaying a window, such as the xref:System.Windows.Forms.Control.Resize and xref:System.Windows.Forms.Control.Layout events, and low-level mouse and keyboard events. Some low-level events are synthesized by xref:System.Windows.Forms.Control into semantic events such as xref:System.Windows.Forms.Control.Click and xref:System.Windows.Forms.Control.DoubleClick. For details about inherited events, see xref:System.Windows.Forms.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