title: User input validation with validation on properties
body: <p>I have a <code>Name</code> Property in one class, that contains some validations:</p>
  
  <pre><code>public string Name
  {
      get { return name; }
  
      set 
      {
          if (! RegEx.IsMatch(value, "\w{1-35}"))
             throw new Exception("Name must be 1-35 alfanum");
          this.name = value;
      }
  }
  </code></pre>
  
  <p>When I bind this property to the <code>"Text"</code> property of a <code>TextBox</code> control in a WinForm application, the user inputted value will be validate with this rule, so how can I catch this exception and show it with an <code>ErrorProvider</code> object?</p>