O'Reilly logo

Special Edition Using C# by NIIT

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Events

An event is a mechanism a class can use to provide notifications to its client applications.

Graphical user interfaces provide familiar examples of this. Consider an action such as a user clicking a button control. This action generates an event. The respective clients are then notified of the event so that the corresponding processing can take place. The client in this case can be a parent form that receives notifications from the button control.

For instance, a button control can notify its parent form that it is clicked. Similarly, a list control can notify the other controls in the form whenever a selection change happens in the list control.

However, the concept of events is not restricted merely to GUI programming. Events can now ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required