Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [void] [reflection.assembly]::loadwithpartialname("System.Windows.Forms")
- $form = new-object Windows.Forms.Form
- $form.text = "Form Pertama Ku"
- $button = new-object windows.forms.button
- $button.text = "Tekan Tombol Ini"
- $button.dock = "fill"
- $button.add_click({$form.close()})
- $form.controls.add($button)
- $form.add_shown({$form.Activate()})
- $form.showdialog()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement