471,350 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Hide MDI Client ControlBox

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
Dec 11 '05 #1
1 7388
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?!

"Saso Zagoranski" <sa*************@guest.arnes.si> wrote in message
news:dn**********@planja.arnes.si...
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

Dec 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ron James | last post: by
4 posts views Thread by Sharon | last post: by
13 posts views Thread by Sylo | last post: by
4 posts views Thread by Never Best | last post: by
1 post views Thread by =?Utf-8?B?UmFmYWVsIFNvdGVsZG8=?= | last post: by
6 posts views Thread by DaveL | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.