Hide MDI Client ControlBox

  • Thread starter Thread starter Saso Zagoranski
  • Start date Start date
S

Saso Zagoranski

Hi,

In .NET 2.0 I have a MDI (parent) form with a menu and a toolbar. I also
have a MDI child form
displayed in the mdi parent form.
The problem is, that when I maximize the child form it's ControlBox gets
shown between the top and the menu of the parent box, which looks really bad
(at least to me).

Is there a way to disable showing the controlbox or even better - show the
control box below the toolbar?

Settings the ParentForm.ControlBox property to false hides the controlbox
when the child is minimized but it still displays it when maximized.

thanks,
saso
 
answer:

In the load event of the child form:

this.ControlBox = false;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.WindowState = FormWindowState.Maximized;

But it's still very strange to me, that if I set all these values in the
designer - it doesn't work?!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MDI child forms acting strange? 1
Maximized MDI forms 1
MDI Child 3
How to maximize MDI child? 1
Lost focus on form Resize event 1
odd MDI child behaviour 0
MDI Child Merge MenuStrip 0
MDI Repaint Problem 6

Back
Top