Home:ALL Converter>How can i Remove Maximize,Minimize and Close icon in MDI Menustrip

How can i Remove Maximize,Minimize and Close icon in MDI Menustrip

Ask Time:2013-06-23T00:05:55         Author:Rai Micheal

Json Formatter

iam using C#.Net Windows Application.In my project have different module that will be used by MDI.. now what the problem is,i can open a new form mean they will display maximize,minimize and Close icon in both MDI and Menustrip.See Below Image...

enter image description here

How can i remove child forms icons(Maximize,Minimize and Close) from MenuStrip

Thanks in Advance...

Author:Rai Micheal,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/17252667/how-can-i-remove-maximize-minimize-and-close-icon-in-mdi-menustrip
Patrick :

In winforms the area where those buttons are is called ControlBox if you do not want them to be displayed you should set the ControlBox property of the form to false\n\nchildForm.ControlBox = false;\n\n\nBut as pointed out in the comments you could use your forms as UserControls by just setting its TopLevel property to false\n\nForm childForm = new Form()\nchildForm.TopLevel = false;\nchildForm.Parent = MainForm;\nchildForm.Show()\n\n\nDoing that you can acomplish the same final result as an MDI form",
2014-12-02T22:21:58
yy