MDI子表格 [英] MDI Child Form

查看:127
本文介绍了MDI子表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要删除所有子窗体中的最小化"和最大化"按钮(普通Winform而不是WPF)
我已经将Minimize和Maximize属性设置为false,它不起作用,我想删除不麻烦的按钮.
(我使用过Interop服务代码,它也无法正常工作)

请帮我一个忙

I want to remove the Minimize and Maximize buttons in the all the child forms(Normal winform not WPF)
I had set Minimize and Maximize property to false, it is not working and i want to remove not diasble the buttons.
(i had used Interop services code it is also not working)

Help me out please

推荐答案

MinimizeBox和MaximizeBox属性使您可以控制是否可以在运行时最小化,最大化或调整表单的大小.
尝试在子窗体中将它们设置为false.
The MinimizeBox and MaximizeBox properties allow you to control whether the form can be minimized, maximized, or resized at run time.

Try setting them to false in your child form.


您需要为这些按钮使用属性,将它们设置为false,它将不会显示在窗体上.
您必须在每个子窗体上执行此操作.
我不确定是否存在任何一种方法可以一次从所有子窗体中删除这些按钮. :doh:
You need to use properties for these buttons, set them false, it won''t show on form.
This you have to do on each child form.
I am not sure whether any method exists for removing these buttons from all child forms at once. :doh:


要删除所有控件,包括控制箱"和最小化",最大化"和关闭"按钮,请将ControlBox属性设置为false.设置后,表单工具栏中唯一的内容将是表单标题


或参考此链接:-

http://www.techotopia.com/index.php/C_Sharp_and_Windows_Forms [
To remove all controls, including the Control Box and the Minimize, Maximize and Close buttons set the ControlBox property to false. When set, the only content in the form''s toolbar will be the form title


or refer this link:-

http://www.techotopia.com/index.php/C_Sharp_and_Windows_Forms[^]


这篇关于MDI子表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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