Random header image... Refresh for more!

Archive for the ‘Windows.Forms’ Category

Drop Down menu using Windows.Forms

Icon Written by Niklas Goude on January 21, 2009 – 7:02 pm

When creating forms and GUI through PowerShell you can use the .NET Class System.Windows.Forms. This example will describe how to make a basic dopdown form and return the selected value to PowerShell.

First we create an Array holding the DopDown values.

PS > [array]$DropDownArray = “First Choice”,
“Second Choice”,
“Third Choice”

The Array contains 3 choices. You can modify [...]

Tags: ,