代码:
Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing
[System.Windows.Forms.Application]::EnableVisualStyles()
$form = New-Object System.Windows.Forms.Form
$form.Text = 'Busca Email'
$form.ClientSize = ‘350,180’
$form.StartPosition = "manual"
$form.Location = New-Object System.Drawing.Point(1000,0)
$form.AutoSize = $true
$form.ShowDialog()
使用 0 它会在顶部击中我,如果我放 (0,0) 它会像我一样在左侧击中我所以它会在右侧击中我所以我不必放 (1000,0)确切的水平轴?e 用 (-1,0) 测试