Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
How can I remove minimize,maximize,close button of MDI child form.
I have menu bar, toolbar in MDI form.
I have set Controlbox property to false of all Child form.

Control Box(minimize, maximize, close) does not appear if Menubar is there.

If I delete menubar, ControlBox of MDI Child form start appearing.
and if we use menu bar then ControlBox does not appear.

Now, I dont want menubar, and dont want the controlbox on MDI Child form.

What is the solution.

Appreciate your reply
Thanking You
Posted
Updated 27-Jul-17 2:30am

I can't guarentee it will work - I haven't tested it for MDI forms, just SDI - but this Tip/Trick Disable the Close box on a form.[^] may help.
 
Share this answer
 
Comments
shanawazway 13-Nov-10 5:27am    
I resolved myself.
I done Window State=Normal
Along with setting ControlBox property to false Also set MaximizeBox = false and Minimizebox = false for all child forms

It should work.
Let me know if any issues.

Tej Aj,
http://www.opexsolution.com/forum/

Fan Of:
http://www.abtstudioz.com/
 
Share this answer
 
Comments
shanawazway 11-Nov-10 8:01am    
I tried your suggestion but It is not working.
Is there any solution ?

Thanks
I finally solve this
If you have tow form ,form1 as mdi form and form2 as mdi child form

In button to show form2 write

VB
form2.MdiParent=me
form2.formporderstyle=Windows.Forms.FormBorderStyle.None
form2.ControlBox=false
form2.MaximizeBox=false
form2.MinimizeBox=false
form2.showicon=false
form2.text=""
form2.dock=DockStyle.Fill



This work for me ,It should work for you too.
 
Share this answer
 
Comments
[no name] 15-Aug-13 6:26am    
Do you really think that after 3 years he is still waiting for a solution that was already solved?
Member 10211234 15-Aug-13 6:41am    
i just read it now because i face this problem and i tried to solved, just yesterday i solve this problem and i did not check the date
my bad i'm sorry
c.shoaib87 7-Sep-14 8:13am    
Thank You... The person posted this question might not be looking for the answer. But there will be so many people like me facing the same problem and looking for a solution. This answer helped me. Thank You again..
Jampido 10-Feb-15 9:12am    
Wow, Thanks! This work for me! :D
Jampido 10-Feb-15 9:17am    
Remenber: To this solutions work you must be sure that WindowState is normal mode.
Simply make the ControlBox property of the child form = False

Good Luck,
z3ngew
 
Share this answer
 
Comments
[no name] 15-Aug-13 6:36am    
Yes. Same thing he was told 3 years ago.
z3ngew 15-Aug-13 7:13am    
my bad, didn't pay attention,
Its easy............just open the properties box and set the minimizebox and maximizebax properties to false............



Reagards,
Ahsan Naveed
 
Share this answer
 
Comments
[no name] 18-Aug-13 8:16am    
Yes.... so easy in fact, the problem was resolved 3 years ago.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900