|
Hey new to powershell and ShowUI (great app btw got referenced in "windows powershell for developers"
Anyways playing around with the sample codes a bit trying to get a feel for it. I can't figure out how to get the box in the center of the screen...Am I missing something obvious.
Import-Module ShowUI
$info = uniformgrid -ControlName "Get-SourceAndDesitnation" -Columns 2 -Width 700 -WindowStartupLocation CenterScreen{
Label "Source"; TextBox -Name "Source" 18
Label "Destination"; TextBox -Name "Destination" John
Label "Last Name"; TextBox -Name "LastName" Smith
button "Ok" -IsDefault -On_Click {
Get-ParentControl |
Set-UIValue -passThru |
Close-Control
}
} -show
|