Chapter 15. Delegates and Events

Until now you saw how to create and manipulate your objects, working with the result of operations performed onto object instances or shared members. All the work we made until now does not provide a way for understanding the moment when a particular thing happens or for being notified of a happening. In .NET development, as for many other programming environments, getting notifications for happenings and knowing the moment when something happens is accomplished handling events, which are information that an object sends to the caller, such as the user interface or a thread, about its state so that the caller ...

Get Visual Basic® 2010 Unleashed 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.