title: Hide ImageMargin and CheckMargin in ToolStripDropDownMenu
body: <p>I'm trying to set the ImageMargin and CheckMargin properties in every ToolSTripDropDownMenu within a certain ToolStrip.  </p>
  
  <pre><code>foreach (ToolStripDropDownButton tsd in toolStrip1.Items)
  {
      ((ToolStripDropDownMenu)tsd.DropDown).ShowImageMargin = false;
      ((ToolStripDropDownMenu)tsd.DropDown).ShowCheckMargin = false;
  }
  </code></pre>
  
  <p>An exception is thrown saying the following:</p>
  
  <blockquote>
    <p>System.InvalidCastException: Unable to cast object of type 'System.Windows.Forms.ToolStripButton' to type 'System.Windows.Forms.ToolStripDropDownButton'.</p>
  </blockquote>
  
  <p>The ToolStrip contains controls besides ToolStripDropDownButtons (namely ToolStripButtons and ToolStripLabels) so I can see where the error is occuring.  What I can't wrap my head around is how to modify ONLY the ToolStripDropDownButtons.  ToolStripDropDownMenu doesn't contain a CheckMargin or ImageMargin property by default unlike a standard ContextMenu.</p>