简体   繁体   English

从MDI容器表单中删除图标

[英]Delete icon from MDI container form

在此处输入图片说明

I have a parent form and some child forms. 我有一个父母表格和一些子表格。 Each of the child form has an icon at the top and left of the form. 每个子窗体在窗体的顶部和左侧都有一个图标。 I would like to discard those icons but when I click on the icon property, I can only browse another icon and not delete the existing one. 我想丢弃这些图标,但是当我单击icon属性时,我只能浏览另一个图标,而不能删除现有的图标。 For that reason I set the showIcon property in each child form to false and the icons are not visible any more on the forms. 因此,我将每个子窗体中的showIcon属性设置为false,并且这些图标在窗体上不再可见。 So far so good. 到现在为止还挺好。

My problem is that when a child form is open and maximized, the icon is shown. 我的问题是,当子窗体打开并最大化时,会显示图标。 I want to make it go away and unfortunately I didn't find a way to do this. 我想让它消失,但不幸的是,我没有找到解决方法。 Any suggestions? 有什么建议么?

Thanks! 谢谢!

EDIT: I added a screenshot of the form, the unwanted icon is shown above menu strip. 编辑:我添加了窗体的屏幕快照,不需要的图标显示在菜单栏上方。 I want it to go away. 我希望它消失。 When child form is NOT maximized, the icon disappears. 当子窗体未最大化时,图标消失。

I guess you need to create a custom form border. 我想您需要创建一个自定义窗体边框。 Please check http://geekswithblogs.net/kobush/articles/CustomBorderForms3.aspx 请检查http://geekswithblogs.net/kobush/articles/CustomBorderForms3.aspx

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

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