Skip to content

Instantly share code, notes, and snippets.

@Maximus5
Created April 3, 2016 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maximus5/d6ef8119c25937aee6bc110fc50bfe5a to your computer and use it in GitHub Desktop.
Save Maximus5/d6ef8119c25937aee6bc110fc50bfe5a to your computer and use it in GitHub Desktop.
[void][reflection.assembly]::LoadWithPartialName("System.Windows.Forms")
$form = New-Object System.Windows.Forms.Form
$form.Text = "Hello World"
$set_pos = { $form.Location = New-Object System.Drawing.Point(0, 0); }
$form.add_Load($set_pos)
[void]$form.ShowDialog()
@Maximus5
Copy link
Author

Maximus5 commented Apr 3, 2016

Gap on Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment