I am aware this isn't a support forum, but if anyone knows it will be the engineers that made it... When I open a child form in an MDI parent the control box (maximize/minimize etc) appears in the top right corner, there's nothing you can do to stop
it. I have set the properties to disable it but they don't appear to work in MDI mode.
i'm not sure i understand the problem, could you post a repro maybe?
when i put this code in the form load of an mdi parent in c#, i get a child that doesn't have a minimize or maximize box ( this is on vs/net 1.1 ).
Form child = new Form();
child.Text = "Child";
child.MdiParent = this;
child.MinimizeBox = false;
child.MaximizeBox = false;
child.Show(); <--this has no min/max buttons...
so i'm guessing that's not what u are looking for?
Thanks for responding.
My code is identical to yours except mine uses a pre-made form (Form2). Still shows the control box(s).
hmm...works for me ( i get no control box ). Form2's ctor doesn't set its size to be maximized does it...?
from the msdn help for Form.ControlBox:
Note When set to false, the ControlBox property has no effect on a Multiple Document Interface (MDI) child form that is displayed maximized at time of creation.
this is on vs.net 1.1, i haven't tried on v 1.0 of the framework...
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.