Windows Phone Developers

Wednesday, January 7, 2009

How to Disable Maximize Button on Windows Forms using C#

Disable/Enable Maximize Box on Windows Forms

A Maximize button enables users to enlarge a window to full-screen size. To display a Maximize button, you must also set the form's FormBorderStyle property to FormBorderStyle.FixedSingle, FormBorderStyle.Sizable, FormBorderStyle.Fixed3D, or FormBorderStyle.FixedDialog.

A Maximize button automatically becomes a restore button when a window is maximized. Minimizing or restoring a window automatically changes the restore button back to a Maximize button.

To disable Maximize button

this.MaximizeBox = false;

Windows form Maximize Box

Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon


  1. obitumx@yahoo.comJuly 6, 2009 at 2:00 AM

    how can i disable the restore box in the following case:

    frm.windowstate = formwindowstate.maximized
    frm.maximizedbox = false

    frm is an mdichild. maximizedbox/restore box resets to true after frm is shown. i don't want to use controlbox = false because i still need the minimizebox and close box.

  2. I want to create a Inventory stock control in, please help me.....

  3. What help u want ?