In my application I need to temporarily gray out the minimize button of the main form. Any ideas how this can be achieved? I don\'t mind doing p/invokes to Win32 dlls.
Put this code in your form's Resize event:
if (this.WindowState == FormWindowState.Minimized) { this.WindowState = FormWindowState.Normal; }
This will make your form un-minimizable (DISCLAIMER: I do not advocate altering the standard behavior of windows in this way).