Application #9. Use Callbacks

This application demonstrates how to perform callbacks using both interfaces and delegates.

Building Upon...

Application #79: Use Thread Pooling

Application #84: Asynchronous Calls

New Concepts

Visual Basic .NET makes it easy for you to call a function by its address. This is an important feature because that’s how you set up a callback.

Callbacks—Conceptual

What is a callback function, and why would you need one? A callback function is a reference to a method that you can pass to a second method. At some point, the second method invokes the reference, thereby calling back to the first method. You can use a callback to notify you when a job is done by calling a procedure in your code. First you initiate the ...

Get 101 Microsoft® Visual Basic® .NET Applications now with O’Reilly online learning.

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