title: How to get ALL child controls of a Windows Forms form of a specific type (Button/Textbox)?
body: <p>I need to get all controls on a form that are of type x. I'm pretty sure I saw that code once in the past that used something like this:</p>
  
  <pre><code>dim ctrls() as Control
  ctrls = Me.Controls(GetType(TextBox))
  </code></pre>
  
  <p>I know I can iterate over all controls getting children using a recursive function, but 
  is there something easier or more straightforward, maybe like the following?</p>
  
  <pre><code>Dim Ctrls = From ctrl In Me.Controls Where ctrl.GetType Is Textbox
  </code></pre>