title: How to clear the text of all textBoxes in the form?
body: <pre><code>private void CleanForm()
  {
      foreach (var c in this.Controls)
      {
          if (c is TextBox)
          {
              ((TextBox)c).Text = String.Empty;
          }
      }
  }
  </code></pre>
  
  <p>This method above doesn't work and the controls aren't cleared. It compiles fine, but does nothing.</p>
  
  <p>Any ideas?</p>