PowerShell – Form – Remove/Disable Cancel, Minimize, Maximize

email me

Something so simple…but it works.

Just add this to your form:

$form.MaximizeBox = $False
$form.MinimizeBox = $False
$form.ControlBox = $False

 


Notes

To completely hide the form:

$form.ShowInTaskbar = $False
$form.Hide()

 

more at Microsoft…