Events

When you first learn any programming language you are taught how to program using a procedural approach. This is on purpose to focus your attention on the language itself without having to explain some of the more complex concepts in programming. In fact, this is the approach we took early on in this book to get you started learning Visual Basic .NET.

In contrast, developing a user interface requires an event-driven programming model. Instead of having a predefined start point and end point with a set of code in the middle, event-driven programming requires that you develop snippets (or small sections) of code that get executed when an event happens in your application. When an event occurs, it is said that the event “fires.” Any code ...

Get Visual Basic® .NET by Example 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.