title: .net WinForms control validation - how to explicitly validate all controls
body: <p>If I create a simple Winforms app with a button and a textbox, and the following event handlers, I'd expect to see "False" when I hit the button.  When I hit the button, it actually produces "True".  </p>
  
  <p>Why is the form valid?  It doesn't appear that the validating event is executing at all, even though <a href="http://msdn.microsoft.com/en-us/library/50w40fty.aspx" rel="nofollow">the docs</a> say that passing false causes validation to be performed unconditionally.</p>
  
  <pre><code>    private void button1_Click(object sender, EventArgs e)
      {
          MessageBox.Show(this.Validate(false).ToString());
      }
  
      private void textBox1_Validating(object sender, CancelEventArgs e)
      {
          e.Cancel = true;
      }
  </code></pre>