我想从窗户MDI子窗体中删除图标 [英] I want to remove icon from windows MDI child form

查看:114
本文介绍了我想从窗户MDI子窗体中删除图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有与图标相关的同样的问题。我对你的回答是操作SetIcon属性设置为false满足。但我的形式是MDI窗体的孩子,那么这个问题是保持相同的图标无法删除。
你能帮助我。

There is same problem related with icon. I am satisfy with your answer that seticon property to false. But my form is child of MDI form, then this problem is remain same that icon is not remove. Can you help me.

推荐答案

是的,这是一个在Windows MDI实施的功能。设计指南要求子窗体有一个图标,所以很容易让用户看到了什么最大化的孩子,在哪里点击激活系统菜单。 Windows窗体设计器应该禁用了ShowIcon属性,并迫使它真实的,但不能因为它不知道的还以为形式将成为MDI子。

Yes, this is a "feature" of the Windows MDI implementation. Design guides require the child form to have an icon so it is easy for the user to see what child was maximized and where to click to activate the system menu. The Windows Forms designer should have disabled the "ShowIcon" property and force it True but it can't because it doesn't know yet that the form will become an MDI child.

您将不得不解决它。一种可能性是使用1x1图标这透明的,从而当儿童形式最大化它将不可见。当然它不是一个理想的修复,窗体的标题文本将被转移到右侧。阻力最小的路径是简单地为表单创建一个图标。

You'll have to work around it. One possibility is using a 1x1 icon that's transparent so it won't be visible when the child form is maximized. It is however not an ideal fix, the form's caption text will be shifted to the right. The path of least resistance is to simply create an icon for the form.

这篇关于我想从窗户MDI子窗体中删除图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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