473,405 Members | 2,310 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,405 software developers and data experts.

Removing Min/Max/Close buttons from MDI child

JSM
Hi,

Is it possible to remove the minimise, maximise and close buttons on an MDI
child form? I know the documentation say all MDI child forms will have these
buttons regardless of whether you disable them or not but surely there must
be a way via an API call or something.

Cheers,

John
Nov 16 '05 #1
3 6018
JSM
Don't worry I figured it out

myForm.MdiParent=this;
myForm.Menu=null;
myForm.Text="";
myForm.ControlBox=false;
myForm.Dock=DockStyle.Fill;
Cheers,

John

"JSM" <js*@ThisIsntAnEmailAddress.com> wrote in message
news:Oz**************@TK2MSFTNGP09.phx.gbl...
Hi,

Is it possible to remove the minimise, maximise and close buttons on an MDI child form? I know the documentation say all MDI child forms will have these buttons regardless of whether you disable them or not but surely there must be a way via an API call or something.

Cheers,

John

Nov 16 '05 #2
Just set the FormBorderStyle property of the child form to None.

HTH,
fbhcah
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
JSM
That doesn't work because if you maximise the form you still get the
buttons. The trick was to set the docking style to "fill" instead of using
maximise.

Thanks for the reply anyway.

Cheers

"fbhcah" <fb****@rediffmail.do_not_spam.com> wrote in message
news:em**************@tk2msftngp13.phx.gbl...
Just set the FormBorderStyle property of the child form to None.

HTH,
fbhcah
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Debi | last post by:
Hi, I added a few buttons to the Mdi form, to call the child forms in the button click event. But when the child window opens, all the buttons are displayed in front of the child window. Any...
2
by: Jacques Koorts | last post by:
Hi, I've managed to get the parent window close the child window (popup). I do this by the child calling the parent to close it. How can the child close itself without help from parent? So...
3
by: JSM | last post by:
Hi, Is it possible to remove the minimise, maximise and close buttons on an MDI child form? I know the documentation say all MDI child forms will have these buttons regardless of whether you...
1
by: Samy | last post by:
Hi There, I have a child window opened from aspx page using window.open. On the child window, I have a button(New category) which opens a grandchild. I also have a cancel button on the child...
14
by: Paul | last post by:
Hi I have 2 functions in java script, one opens a second window-this works, the other is supposed to close this second window, does not seem to be working. Just wondering if anyone had any ideas....
5
by: Edwinah63 | last post by:
Hi everyone, i was wondering if anyone else had observed this and if there is any workaround or patch. i have some screens (an mdi child forms) with the buttons &Add, &Edit, &Save and E&xit,...
0
by: Bill | last post by:
Hi I have a parent child forms. I want the close, maximize, and minimize buttons to be removed. One the child form I have set the maximize and minimize buttons to false. I have the child form...
4
by: LCAdeveloper | last post by:
Help! Another newbie question I'm afraid. I have a toolbar on an MDI form, which I can control OK to produce a child form. When the child form is active, the appropriate MDI parent form toolbar...
0
by: bloombloom | last post by:
I am gonna post my AS in hopes that someone can get a good understanding of what i am doing. So here is the code: t1.onRelease = function() { infoField._visible = true; startLoading("cc11.swf");...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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...
0
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,...
0
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...

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.