Events

An event is a notification. By necessity, this definition is broad. Events encompass a wide range of occurrences and actions. Here is a description of some predefined events, which underscores the breadth of activities. A button-click event notifies a form that a button has been clicked. A timer event is a notification that a set period of time has elapsed. The unhandled exception event of the application domain is a notification of a fatal exception. The Application_Start event notifies a Web application that the application is loading. You also can create custom events for a variety of purposes. Typically an event is exposed as a member of a publisher class, such as a button class.

Anyone interested in an event can subscribe to that event. ...

Get Programming Microsoft® Visual C#® 2008: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.