how to transfer the text from dynamically generated user control to a textbox
<p>i have a windows form in which a <strong>button1</strong> when that is clicked a usercontrol is added dynamically the code is this</p>

<pre><code>            int c = 0;
         private void button1_Click(object sender, EventArgs e)
    {
        int v;
        v = c++;
        panel1.VerticalScroll.Value = VerticalScroll.Minimum;
        UserControl1 us = new UserControl1();
        us.Name = "us" + v;
        us.Location = new Point(50, 5 + (30 * v));
        us.Tag = btn;
        panel1.Controls.Add(us);
     }
</code></pre>

<p>that usercontrol contains 4 controls 2 combobox and 2 textbox </p>

<p>i.e <strong>combobox1 combobox2 textbox1 textbox2</strong></p>

<p>there are 4 textbox which are on the same form which is </p>

<p><strong>still-textbox1 , still-textbox2 , still-textbox3 , still-textbox4</strong></p>

<p>one more <strong>button2</strong> is there it will transfer the text to comboboxes and texboxes which is <strong>oldcombobox1 oldcombobox2 oldtextbox1 old textbox2</strong></p>

<p>when button1 is click twice it will add two usercontrol in the form
i want to transfer the text in this format</p>

<p>oldcombobox1.text = still-textbox1.text + "," + combobox1.text (which is dynamically generated) + "," + combobox1.text (which is dynamically generated)  etc all the combobox1 from the user control which is added dynamically )</p>

<p>oldcombobox2.text = still-textbox2.text + "," + combobox2.text  (which is dynamically generated) + "," + combobox2.text (which is dynamically generated)  etc all the combobox2 from the user control which is added dynamically )</p>

<p>oldtextbox1.text = still-textbox3 + "," + textboox1.text (which is dynamically generated) + "," + textbox1.text (which is dynamically generated)  etc all the textbox1 from the user control which is added dynamically )</p>

<p>means when the still-textbox1.text = first
and when dynamic usercontrol is added thrice it will contain 3 times combobox1 then </p>

<p>the oldcombobox1 should contain </p>

<p>fisrt,combobox1.text,combobox1.text,combobox1.text</p>

<p>i have made this code but it doesnt work</p>

<pre><code>  foreach (Control ctrl in panel1.Controls)
   {
     if (ctrl is UserControl)
     {
         UserControl1 myCrl = ctrl as UserControl1;
         oldcombobox1.text = still-textbox1.text + "," + myCrl.comboBox1.Text;
         oldcombobox2.Text =still-textbox2.text + "," + myCrl.comboBox2.Text;
         oldtextbox1.Text = still-textbox3.text + "," + myCrl.textBox1.Text;
         oldtextbox2.Text.Text = still-textbox4.text + "," + myCrl.textBox2.Text;
      }
    }
</code></pre>
