How to remove the maximize box,minimize box and control box in the mdi child form???
I have done the following,
used Menustrip in MDIParent form and as selection of the menu item the mdi child form should be displayed within the parent form.
In menustripitem i have coded as,
if (F2 == null || F2.IsDisposed|| F2.IsMdiChild )
{
F2 = new Form2();
F2.MdiParent = this;
F2.ShowIcon = false;
F2.Dock =DockStyle .Fill ;
F2.Show();
}
In the child form load event i have set the following properties,
this.FormBorderStyle = FormBorderStyle.None;
this.ControlBox = false;
this.MaximizeBox = false;
this.MinimizeBox = false;
But,eventhough the maximize box,minimize box and control box are appearing a second and disappears.why it is displaying like that,whether the maximize box,minimize box and control box are removed or not.
Can anyone provide the suggestion...???
Loading

chellappan pandiarajan79 reputationPosted Jan 18, 2013, 9:18 AM EST
Don't write the MDI Child Form Design properties on MDI FORM....
just write the code in the Parent Form...
Change your MenuStrip click event like below...
if (F2 == null || F2.IsDisposed|| F2.IsMdiChild )
{
F2 = new Form2();
F2.MdiParent = this;
F2.ShowIcon = false;
F2.FormBorderStyle = FormBorderStyle.None;
F2.Dock =DockStyle .Fill ;
F2.Show();
}
it will work...., also i have attached the sample see that...
-Pandian
-Mark us answer if it solves ur issue
Rani5 reputationPosted Jan 18, 2013, 7:28 PM EST
Thanks in Advance
chellappan pandiarajan79 reputationPosted Jan 19, 2013, 10:42 AM EST
-Pandian
Rani5 reputationPosted Jan 21, 2013, 7:46 AM EST