I wrote a .NET app that I would like to minimize programmatically without using me.windowstate.
Here's the issue -- when I click on a regular button that I made with the code Me.WindowState = Windows.Forms.FormWindowState.Minimized, the form does minimize, but the memory usage does not go down.
However, if I click the standard minimize button in the upper right hand corner of the form, the form minimizes and the memory usage plummets, which is what I'm looking for. (Even though the memory usage figure might only be cosmetic).
My question -- does anyone know how to programmatically simulate clicking the little minimize button at the top right of the form?