[void][reflection.assembly]::LoadWithPartialName(“System.Windows.Forms”)
$form = new-object Windows.Forms.Form
$form.Text = “tech-jockey”
$button = new-object Windows.Forms.Button
$button.text=”Hello Jockey”
$button.Dock=”fill”
$button.add_click({$form.close()})
$form.controls.add($button)
$form.Add_Shown({$form.Activate()})
$form.ShowDialog()
$form = new-object Windows.Forms.Form
$form.Text = “tech-jockey”
$button = new-object Windows.Forms.Button
$button.text=”Hello Jockey”
$button.Dock=”fill”
$button.add_click({$form.close()})
$form.controls.add($button)
$form.Add_Shown({$form.Activate()})
$form.ShowDialog()
No comments:
Post a Comment
Thanks for showing interest in tech-jockey.