title: C# - How to write a Leave Event for a textbox that has been created dynamically
body: <p>I have a dynamically created text box.  I want to register a function on the Leave event.  How do I do that?</p>
  
  <pre><code>textbox = new TextBox();
  </code></pre>