Chapter 15. Delegates and Events

So far, you have seen how to create and manipulate your objects, working with the result of operations performed onto object instances or shared members. All the work up to 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 with many other programming environments, getting notifications for occurrences and knowing the moment when something happens is accomplished by handling events. Events 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® 2012 Unleashed, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.