简体   繁体   English

如何从窗体中删除最大化图标并保留最小化

[英]how to remove the Maximize icon from form and leave the minimize

I want to disable maximizing my form so I set MaxmimizeBox to false and lest MinimizeBox true the problem is that it shows the maximize icon- it is grayed out but yet shown. 我想禁用最大化我的表单,所以我将MaxmimizeBox设置为false,以免将MinimizeBox设置为true,问题是它显示了最大化图标-灰色但尚未显示。 when setting both maximize and minimize to false it does not show the icons at all. 将最大化和最小化都设置为false时,它根本不显示图标。 how can I show the minimize icon and not the maximize one? 如何显示最小化图标而不是最大化图标?

这是不可能的:如果您确实要隐藏它,则必须实现自己的框架和窗口工件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM