title: Finding a control on a Winforms using LINQ?
body: <p>I am trying to find an elegant way to get controls on a <a href="http://en.wikipedia.org/wiki/Windows_Forms" rel="nofollow noreferrer">Windows Forms</a> form by name. For example:</p>
  
  <pre><code>MyForm.GetControl "MyTextBox"
  
  ...
  </code></pre>
  
  <p>But this has to make sure it goes through all the controls recursively.</p>
  
  <p>What's the most elegant way to implement this using <a href="http://en.wikipedia.org/wiki/Language_Integrated_Query" rel="nofollow noreferrer">LINQ</a>?</p>