I want to remove icon from windows MDI child form

前端 未结 2 1989
别跟我提以往
别跟我提以往 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:38

    As described here you can make such item invisible:

    private void MenuStrip_ItemAdded(object sender, ToolStripItemEventArgs e)
    {
        if (e.Item.Text == "")
        {
            e.Item.Visible = false;
        }
    }
    

提交回复
热议问题