How to get text from programmatic textbox when text changes?
<p>I am creating several text boxes depending on user choice (1-5).How can I access value of programmatic textbox when text changes.</p>

<pre><code>class starts{
    int i=0;

    .....

    TextBox txtb4 = new TextBox();
    txtb4.Name = "textname" + Convert.ToString(i);
    ArrayText.Add(txtb4);
    System.Drawing.Point p5 = new System.Drawing.Point(120, 15);
    txtb4.Location = p5;
    txtb4.Size = new System.Drawing.Size(80, 30);
    txtb4.Text = stringMy;
    grBox1.Controls.Add(txtb4);
    i++;
}
</code></pre>

<p>I can access initial textbox text using code below, but I can't access it after value is changed.</p>

<pre><code>label15.Text = grBox1.Controls["textname0"].Text;
</code></pre>
