title: Customizing a TabControl for the Closing of Individual Tabs
body: <h2>My scenario is the following:</h2>
  
  <p>I am working on a winforms application in C# that has a button inside the main page of a tabcontrol that will generate another tabpage each time that it is clicked. Each new tabpage will contain a layout defined by a user control. </p>
  
  <h2>My Questions are:</h2>
  
  <ol>
  <li><p>How can I allow the user to then close one of the tabs that were created dynamically at runtime?</p></li>
  <li><p>How might I go about modifying the tabcontrol itself so that it has a small 'X' in each tab that the user may click on in order to close that particular tab? (Like Firefox has)</p></li>
  <li><p>How can I expose the SelectedIndex property of the tabcontrol to the user control if I want to close the tab with a button inside the user control instead?</p></li>
  </ol>