What are event handlers, trigger functions and event loops?
Event loops are a technique implemented to capture the generated events.In this, a Control program runs in an infinite loop checking for some condition( Say, mouse has been clicked ). Once the condition occurs, then the Event Loop invokes a function or another program which is supposed to execute whenever the event occurs. Trigger functions are functions that fire a certain event. Or, cause a certain event to occur. Eg/ In VB6, the code you write inside the click event of a button will function as Event Handler, the Event loop is implemented by VB internally with close interaction with the OS, to determine the occurence of Events.