Draw a Panel and a Text box and set its property multiline = true in your Form and modify the line no "32" to
this.panel1.Controls.Add(txtTemp);
Now write loop code in button2_click
private void button2_Click(object sender, EventArgs e)
{
foreach (Control cont in panel1.Controls )
{
if (cont is TextBox)
{
//txtresult is your textbox for result of all textbox
txtresult.AppendText(((TextBox)cont).Text);
}
}
}
Hope this help you.
yousafc#
Junior Poster in Training
98 posts since Feb 2011
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0
Now I Not UnderStand You.What Do You Want?
Do You Want Show All TextBoxes Number How Many User Created Dynamically Or What user Write in said TextBox.Tell us Clearly.
yousafc#
Junior Poster in Training
98 posts since Feb 2011
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0