I'm writing a script that will basically come into being as my 1 point port of call tool for the majority of server tasks. I'm doing this as it will also benefit those around me who have no idea what I'm doing but know that it is useful stuff. Anyway I've ran into a bit of a problem and for once good old google cannot help me.
I'm writing a form that does not have the usual form around it (i.e. the close and minimize buttons) as I'm creating my own. Basically I'm just after a bit of code that will minimize the window on pressing the minimize button. For instance the button itself is called $BtnMinimize alongside one called $BtnClose, what is the code for doing this? I'm currently using:
$BtnMinimize_OnClick {FrmInstall.Minimize()}
just so you get an idea of what is working:
$BtnClose_OnClick {FrmInstall.Close()}