Export (0) Print
Expand All

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 to create event handlers.

Events Overview (Windows Forms)

Explains the event model and the role of delegates.

Event Handlers Overview (Windows Forms)

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.

How to: Create Default Event Handlers on the Windows Forms Designer

Describes how to use the Windows Forms Designer to create an event handler for the default action of a component.

Handling and Raising 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.

Show:
© 2014 Microsoft