title: Checking if tab exists in tabControl c#
body: <p>I am creating tabs dynamically and I have managed to do it but when I try and make it check if the tab already exists so it cant add another one if just keeps adding them.</p>
  
  <pre><code>      private void fourBtn_Click(object sender, EventArgs e)
      {
          string theName = "Level4";
          TabPage tp = new TabPage(theName);
          if (!tp.Name.Equals(theName)) {
  
  
  
  
              tp.Name = theName;
              tabControl1.TabPages.Add(tp);
  
              TextBox tb = new TextBox();
              tb.Dock = DockStyle.Fill;
              tb.Multiline = true;
              tp.Controls.Add(tb); 
          }
      } 
  </code></pre>