title: access a control from another in winforms
body: <p>What is wrong with this code? I want to change a label in Form1 in tabControl1 in tabPage3.</p>
  <pre><code>private void FormInsertDanaScores_FormClosing(object sender, FormClosingEventArgs e)
  {
      Form1 frm = new Form1();
      foreach (Control c in frm.Controls)
      {
          foreach (TabPage TabPage in tabControl1.TabPages)
          {
              foreach (Control control in TabPage.Controls)
              {
                  if (control.Name == &quot;lblInsertEditScores&quot;)
                  {
                      
                      ((Label)(c)).BackColor = Color.Transparent;
                      ((Label)(c)).Text = &quot;jjjjjj&quot;;
                      frm.Refresh();
                  }
              }
             
          }
      }
  
  }
  </code></pre>