title: Get a Windows Forms control by name in C#
body: <p>I have a <code>ToolStripMenuItem</code> called <code>myMenu</code>. How can I access this like so:</p>
  
  <pre><code>/* Normally, I would do: */
  this.myMenu... etc.
  
  /* But how do I access it like this: */
  String name = myMenu;
  this.name...
  </code></pre>
  
  <p>This is because I am dynamically generating ToolStripMenuItems from an XML file and need to reference MenuItems by their dynamically generated names.</p>