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
RaniPosted Jan 21, 2013, 12:46 PM
chellappan pandiarajanPosted Jan 19, 2013, 3:42 PM
-Pandian
RaniPosted Jan 19, 2013, 12:28 AM
Thanks in Advance
chellappan pandiarajanPosted Jan 18, 2013, 2:18 PM
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