Windows, on the other hand, opened up the world of event - driven programming.
Events in this context include clicking a button, resizing a window, or changing an entry in a text box. The code that you write responds to these events.
In terms of the hallway analogy: In a Windows program, to get to the end of the hall, you just click the end of the hall. The hallway can be ignored. If you get to the end and realize that is not where you wanted to be, you can just set off for the new destination without returning to your starting point. The program reacts to your movements and takes the necessary actions to complete your desired tasks.Program input can also come from the computer system itself.
The computer, not the user, triggers these events.
Event-driven nature of Visual Basic means that most of the computing done in your programs is accomplished by event procedures.
These event-specific blocks of code process input, calculate new values, display output, and handle other tasks.
No comments:
Post a Comment