Wednesday, January 7, 2009

How to Disable Minimize Button on Windows Forms using C#

How to Disable Minimize Box on Windows Forms using C#

A Minimize button enables users to minimize a window to an icon. To display a Minimize button, you must also set the form's FormBorderStyle property to FormBorderStyle.FixedSingle, FormBorderStyle.Sizable, FormBorderStyle.Fixed3D, or FormBorderStyle.FixedDialog.

To enable or disable the minimize button, you can use

this.MinimizeBox = false;

No comments:

Post a Comment