title: How to Add Click Listener to Programmatically Added Tabcontrol
body: <p>In my application i'm programmatically adding a tab like so:</p>
  
  <pre><code>'show searchresults tab if not present
  If Not TabControl1.TabPages.Contains(tabSearchresults) Then
      TabControl1.TabPages.Insert(3, tabSearchresults)
  End If
  </code></pre>
  
  <p>Now I cant seem to manually add a click event listener to that tab in design view, and when I do so in codeview nothing happens when I click that tab.</p>
  
  <p>So the question is,.. How do I add a click listener to that tabSearchresults tab?</p>