删除MDi子窗体的最小化,最大化,关闭按钮 [英] Remove minimize,maximize,close button of MDi child form

查看:182
本文介绍了删除MDi子窗体的最小化,最大化,关闭按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何删除MDI子窗体的最小化,最大化,关闭按钮。

我有MDI格式的菜单栏,工具栏。

我已将Controlbox属性设置为所有儿童表格都是假的。



如果菜单栏在那里,控制盒(最小化,最大化,关闭)不会出现。



如果我删除菜单栏,MDI Child窗体的ControlBox开始显示。

如果我们使用菜单栏,则不会出现ControlBox。



现在,我不想要菜单栏,并且不想在MDI儿童表格上使用控制箱。



解决方案是什么。



感谢你的回复

感谢你

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

推荐答案

我不能保证它会起作用 - 我没有'测试它的MDI表格,只是SDI - 但这个提示/技巧禁用表单上的关闭框。 [ ^ ]可能会有所帮助。
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.


同时将ControlBox属性设置为false同时设置MaximizeBox = false和Minimizebox = false所有子表单



它应该可以工作。

如果有任何问题,请告诉我。



Tej Aj,

http://www.opexsolution.com/forum/



粉丝:

http://www.abtstudioz.com/
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/


我终于解决了这个

如果你有两个表格, form1为mdi表单,form2为mdi子表单



按钮显示form2写入



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

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.


这篇关于删除MDi子窗体的最小化,最大化,关闭按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆