Understanding Event-Driven Programming

With ”traditional” programming languages (often referred to as procedural languages), the program itself fully dictates what code is executed as well as when it's executed. When you start such a program, the first line of code in the program executes, and the code continues to execute in a completely predetermined path. The execution of code may, on occasion, branch and loop, but the execution path is completely determined by the program. This often means that a program is quite restricted in how it can respond to the user. For example, the program might expect text to be entered into controls on the screen in a predetermined order. This is quite unlike a Windows application, where a user can interact with ...

Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours 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.