title: Scaling the icon used by a maximised MDI child in the parent form's MenuStrip
body: <p>In an MDI application, when the MDI child form is maximised the icon for the form is used as the context menu icon, displayed on the left of the parent form's MenuStrip. When I set the icon of a form used in an MDI application to something larger than 16x16 (I'm using 32x32) the icon is drawn unscaled, and the menu is resized to suit. Note that if the ICO file also contains a 16x16 version of the icon it works fine.</p>
  
  <p>The following creates a basic application that shows the behaviour:</p>
  
  <ul>
  <li>create a new solution and WinForms project</li>
  <li>change Form1's IsMdiContainer to <code>true</code></li>
  <li>add a <code>MenuStrip</code> to Form1</li>
  <li>create a new form, call it <code>MdiChildForm</code></li>
  <li>set <code>MdiChildForm</code>'s icon to a 32x32 ICO file, <a href="http://min.us/mvk1I4u" rel="nofollow noreferrer">here's one I prepared earlier</a></li>
  <li><p>in <code>Form1</code> add a menu item, double-click it to create the <code>Click</code> event handler and add the following:</p>
  
  <pre><code>var child = new MdiChildForm();
  child.MdiParent = this;
  child.Show();
  child.WindowState = FormWindowState.Maximized;
  </code></pre></li>
  <li><p>build and run, click the menu item</p></li>
  </ul>
  
  <p>Note that when you click the menu item again the icon changes to the default one, this is described in <a href="https://stackoverflow.com/questions/888865/problem-with-icon-on-creating-new-maximized-mdi-child-form-in-net">this question</a> and isn't the issue here.</p>
  
  <p>I'm pretty sure this would be described as 'by design' but it is annoying nonetheless. Is there a way to force the context menu icon to scale down, sort of resizing the source icon? I'll probably do that as well, but I'm after some kind of in-code catch-all.</p>