473,551 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Cont rolBox 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 7563
answer:

In the load event of the child form:

this.ControlBox = false;
this.MaximizeBo x = false;
this.MinimizeBo x = false;
this.WindowStat e = 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.s i> 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.Cont rolBox 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
3796
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 thread updates the dialog by calling Invoke which runs the UI update method on the UI thread. This works nicely. (Thanks Chad) However, if I close...
4
3822
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 you Sharon
3
8384
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. Also, when the parent form's FormBoarderStyle is set to nothing, then the child form is maximized, I get the minimize and maximize buttons at the top...
1
1558
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 "Maximized", the container will display the sub form's ico and Maximized, Minimized & Close buttons at the top of it, where is the menu bar My question...
13
3680
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 the MDI Form appears, no problem, we have not ther controlbox. But when I maximize the MDI Form, the controlBox appears and I DON'T WANT THAT !!!!!
0
1399
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 Put this in your childs Form_Load Event
4
13170
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 starts in the system tray aswell; only shows main window if they double click). Currently to achive this when the user minimizes I have to set...
1
1091
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
10131
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
7565
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7492
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7768
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7522
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6106
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
1981
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1097
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.