I need to create a basic "helpdesk style" tool that uses some powershell scripts. I'm using .NET form object to create a window, but I can't set properly the Localtion attribute (and other attributes that need a Point object)
$form = New-Object system.Windows.Forms.Form;
$form.AutoSize = $true;
$form.minimumSize = New-Object System.Drawing.Size(400, 300);
$form.Location = New-Object System.Drawing.Point(10, 10);
$form.DataBindings.DefaultDataSourceUpdateMode = 0;
$form.ShowDialog();
The window form appears, dimensions are correct, but position is wrong. Am I missing something?