The 10 Features Of Event Driven Programming

2576 Words Apr 14th, 2015 11 Pages
The 10 Features of Event Driven Programming
There are 10 major features of event driven programming. The first of these is the inclusion of a graphical user interface – or GUI. The GUI is what most people see when the turn on their computer, the familiar interface that allows us ease of access to our computers. The graphical user interface is an enormous improvement over pre-Windows ’98 formats, such as the text-based interface. This is because it is laid out in a simple fashion and is easier to use than typing commands in. The button push is much simpler than typing. Code can be placed behind buttons and menus that can be triggered whenever these items are interacted with. Event driven programming is suitable for a GUI because it gives the user a wide variety of choices. Figure 1.1:- This is the graphical user interface for a small Hangman game.
Loops are another function of event driven programming. These are useful as they allow for various pieces of code to repeat. This is useful because it means that code does not have to be written multiple times. Instead, the code can repeat until set conditions are met. This means that the amount of code is reduced and therefore the space on the hard drive taken up by the program is significantly reduced. There are several different types of loop. For loops, for each loops, do loops, do while loops are all kids of loops that can be employed by C# in Visual Studio. A loop is a form of flow control. Figure 1.2:- This code shows a…
Open Document