Files
docs-desktop/dotnet-desktop-guide/framework/winforms/creating-event-handlers-in-windows-forms.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

2.5 KiB

title, description, ms.date, helpviewer_keywords, ms.assetid
title description ms.date helpviewer_keywords ms.assetid
Create Event Handlers Learn how events in Windows Forms can be assigned to multiple handlers, and how the methods that handle particular events can be changed dynamically. 03/30/2017
event handling [Windows Forms]
Windows Forms controls, event handling
Windows Forms, event handling
events [Windows Forms], event handlers
event handlers [Windows Forms]
6514e530-c6b8-489c-a8d2-eda7b7072701

Creating Event Handlers in Windows Forms

An event handler is a procedure in your code that determines what actions are performed when an event occurs, such as when the user clicks a button or a message queue receives a message. When an event is raised, the event handler or handlers that receive the event are executed. Events can be assigned to multiple handlers, and the methods that handle particular events can be changed dynamically. You can also use the Windows Forms Designer in Visual Studio to create event handlers.

In This Section

Events Overview
Explains the event model and the role of delegates.

Event Handlers Overview
Describes how to handle events.

How to: Create Event Handlers at Run Time for Windows Forms
Gives directions for responding to system or user events dynamically.

How to: Connect Multiple Events to a Single Event Handler in Windows Forms
Gives directions for assigning the same functionality to multiple controls through events.

Order of Events in Windows Forms
Describes the order in which events are raised in Windows Forms controls.

How to: Create Event Handlers Using the Designer Describes how to use the Windows Forms Designer to create event handlers.

Events
Provides links to topics on handling and raising events using the .NET Framework.

Troubleshooting Inherited Event Handlers in Visual Basic
Lists common issues that occur with event handlers in inherited components.