Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Handling and Raising Events 

Events in the .NET Framework are based on the delegate model. (Those familiar with design patterns in object-oriented programming will notice the observer design pattern.) This section contains topics that describe the delegate model, show how to consume events in applications, and describe how to raise events from your class.

For details about the event syntax in a specific programming language, see the documentation for that language.

In This Section

Events and Delegates

Provides an overview of the event model and describes delegates in the .NET Framework.

How to: Connect Event Handler Methods to Events

Shows how to define an event handler and add it to an event raised in another class.

Consuming Events

Provides an overview of how .NET Framework applications consume events.

How to: Consume Events in a Web Forms Application

Shows how to handle an event raised by a Web Forms control.

How to: Consume Events in a Windows Forms Application

Shows how to handle an event raised by a Windows Form control.

Raising an Event

Explains how to provide event functionality in your class.

How to: Implement Events in Your Class

Shows how to define and raise an event in your class.

How to: Raise and Consume Events

Contains a detailed sample that raises an event in one class and handles the event in another class.

Raising Multiple Events

Describes a technique for optimizing storage for multiple events.

How to: Handle Multiple Events with Event Properties

Shows how to use event properties for handling multiple events.

Related Sections

ASP.NET Web Server Control Event Model

Describes the details of the event model for ASP.NET Web Forms.

Creating Event Handlers in Windows Forms

Describes the details of the event model for Windows Forms.

Server Event Handling in ASP.NET Web Pages

Describes how to raise events from custom ASP.NET server controls.

Events in Visual Basic

Describes how to define, raise, and handle events in Visual Basic.

Events in Windows Forms Controls

Describes how to raise events from custom Windows Forms controls.

Managed and Unmanaged Events

Describes how managed events in the .NET Framework interoperate with unmanaged COM events.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft