Cannot Add Dynamically Generated Textbox's Text To A List (C#)
<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Mod
{
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    int c = 0;

    private void button1_Click(object sender, EventArgs e)
        {
        TextBox txtRun = new TextBox();
            txtRun.Name = "txtDynamic" + c++;
            txtRun.Location = new System.Drawing.Point(20, 18 + (20 * c));
            txtRun.Size = new System.Drawing.Size(200,15);
            this.Controls.Add(txtRun);
        }
        private void button2_Click(object sender, EventArgs e)
        {
            List&lt;string&gt;tilelocation = List&lt;string&gt;();
            tilelocation.Add();  //What goes in this method's arguments?
        }
    }
}
</code></pre>

<p>Here is my code.  Button1 creates a theoretically infinite # of textboxes, but I wish to add the text in these dynamically generated textboxes to a list.  How can this be done?<br>
[EDIT]
And how can I display them all in a messagebox, each on separate lines?</p>
