Changes

Creating GUIs in Windows PowerShell 1.0 with WinForms

2 bytes added, 20:18, 12 December 2008
A More Complex Example
</pre>
== A More Complex Example Bringing it all Together ==
Now that have seen a simple GUI created in Windows PowerShell and covered some of the basic techniques we can create a slightly more complex GUI. The following script creates a GUI containing a label, button and text field. An event handler is configured on the button such that when it is clicked the text is extracted from the text field and used to construct a message which is then displayed on the label control. Note the creation of Drawing.Point objects to configure the size and location of controls on the form: