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

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file