Event-Driven Programming

Event-driven programming, as its name implies, involves writing code that responds to events. When developing a user interface, this style of programming is required because you, as the developer, do not know ahead of time the sequence of events that users of your applications will take on a given form. Building a user interface that responds to events enables you to build powerful applications that are easy to use.

When you go about designing your forms, you should be thinking about the goal of the form; whether it is going to display data, edit data, or both. If the form is just going to display data, you just need to populate the form as part of the initialization of the form. Even in this case, however, you probably ...

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.