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 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.