Disable windows Form Maximize

Open visual studio 2015: New Project >select windows application

1w.png

After create new project Form1 will be shown like below pic.

2w.png

Select above the form and click F4.Property window should be appearing.

3w.png

Now form’s Maximize Button goes to disable in the design mode.

4w.png

After run the application, double click isn’t work. because maximize button go to disable.

If you stop maximizing in run time, use the below line in your event.

(E.x) I am using in button click even.

private void button1_Click(object sender, EventArgs e)
{
 this.MaximizeBox = false;
}

After run the application begin maximize button is work, if you click the button it should be disabled

Output:

Before Click Event

7w.png

After Click Event

6w.png