Position a windows form with Powershell


hi there

i have :

void] [system.reflection.assembly]::loadwithpartialname("system.windows.forms")
[void] [system.reflection.assembly]::loadwithpartialname("system.drawing")

$objform = new-object system.windows.forms.form
$objform.text = "select computer"
$objform.size = new-object system.drawing.size(300,200)
$objform.startposition = "centerscreen"

the not seem other value "centerscreen" can find, so!

my question is........

is possible use object properties? system.windows.forms.position(10,22)

i want able position input box.

thanks

 

 

 

hello,

if can helpful, there free powershell gui generator primal script. need put in code..

http://www.primaltools.com/downloads/communitytools/

scroll down , for primalforms community edition

primalforms community edition free gui builder tool powershell users. edits , stores windows forms in native xml format , generates powershell code on demand. sample forms included.

 

this works great me


isaac oben mcitp:ea, mcse


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

directory stack

After enabling Windows Server 2012 R2 DHCP Failover Getting Packet dropped because of Client ID hash mismatch

WMI Repository 4GB limit - Win 2003 Ent Question