79417020

Date: 2025-02-06 07:06:12
Score: 1.5
Natty:
Report link
private void menuStrip1_ItemAdded(object sender, ToolStripItemEventArgs e){
   string s = e.Item.GetType().ToString();
   if (s == "System.Windows.Forms.MdiControlStrip+SystemMenuItem")
   {
         menuStrip1.Items.RemoveAt(e.Item.MergeIndex);
   }
}

Code that removes the child form icon from the top left

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dmitro