34,333
edits
Changes
→Windows PowerShell WinForms Events
[[Image:windows_powershell_winforms_gui.jpg|A simple WinForms GUI created using Windows PowerShell]]
== Windows PowerShell and WinForms Events ==
The next area to cover involves the handling of events. An event is typically triggered when a user interacts with a control. For example, clicking on a button control will trigger an event. Event handlers are nothing more than lines of code which define what is to happen when the event is triggered (for example, an event handler may be written to exit the application when a ''Close'' is clicked).