I want to remove icon from windows MDI child form

前端 未结 2 1956
别跟我提以往
别跟我提以往 2021-01-23 11:40

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 ic

2条回答
  •  孤街浪徒
    2021-01-23 12:22

    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.

    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.

提交回复
热议问题