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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access