473,387 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 7546
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ron James | last post by:
I have a Dialog type form that starts a worker thread, allows the thread to update its progess and provides a Cancel button. Following advice from Chad Meyers in a recent posting, the worker...
4
by: Sharon | last post by:
hi i'm installing ASP app on my client server , is there any option i can hide the ASP.Net code from him ? one way is using library (dll) and minimize the server code any other idea ? thank...
3
by: Paul Welter | last post by:
I'm building a MDI application that has child forms. I'm trying to find a way to hide the inner boarder of the child frame area. Setting the FormBoarderStyle of the child form has no effect. ...
1
by: Steven | last post by:
Hello everyone I am editing a MDI form now. The container do not have menu. So there has no menu bar at the top of the container. When I load a sub form of it and set the WindowState property is...
13
by: Sylo | last post by:
Hi, I'm french and I don't find the answer at my question. You are my last chance and sorry for my english... I'm in VB .NET 2002 I have a MDI form with the property ControlBox at FALSE. When...
0
by: theintrepidfox | last post by:
Dear Group After browsing through posts and a great headache I finally found a solution to an often asked question. Not claiming I invented it (LOL) but posting for future reference, HTH, M ...
4
by: Never Best | last post by:
I have an application. I want it so when the user minimizs the window it goes into the system tray, and while in the system tray I don't want it in the "Alt-Tab" list. (When the program starts it...
1
by: =?Utf-8?B?UmFmYWVsIFNvdGVsZG8=?= | last post by:
Hi there: Is there a way to hide the maximize box, but keeping minimize and close box. When I set the property ControlBox to false, all three boxes desapear. -- Rafael Soteldo
6
by: DaveL | last post by:
How can i hide the caption bar of a windows form and still have a Border... All i can find if FormBorderStyle.None; DaveP
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.