title: C# my rich textbox keeps adding all the song names instead of just 1 at the time
body: <p>i'm making a little music program for school, and i keep having problems wiht my  richtextbox (rtb), it keeps adding all the songs from before and i don't know how to fix  it without cleaning it over and over again everytime i click the button.</p>
  
  <pre><code>private void AddSongKtab()
  {
      SongKtab[nr] = new SongInfo();
  
      string m_SongName;
      string m_SongLocation;
  
      ofdOpenKtab.ShowDialog();
  
      m_SongName = ofdOpenKtab.SafeFileName;
      m_SongLocation = ofdOpenKtab.FileName;
  
      SongKtab[nr].SongName = m_SongName;
      SongKtab[nr].SongLocation = m_SongLocation;
  
      tbAddKtab.Text = "";
  
      tbAddKtab.Text = m_SongName;
  
      rtbExtraKtab.AppendText("added" + m_SongName + "\n");
      rtbExtraKtab.AppendText("Located at " + m_SongLocation + "\n\n");
  
      rtbSongsKtab.ScrollToCaret();
  
      nr++;
  
      showAllKtab();
  }
  
  private void showAllKtab()
  {
      int m_index;
  
      rtbExtraKtab.Clear();
  
      for (m_index = 0; m_index &lt; nr; m_index++)
      {
          rtbSongsKtab.AppendText(SongKtab[m_index].SongName + "\n");
      }
  }
  </code></pre>