public partial class newTemplate : Form
{
int i = 0;
int x = 22;
int noofcontrols = 0;
TextBox[] t1 = new TextBox[25];
Label[] l1 = new Label[25];
public newTemplate()
{
InitializeComponent();
}
.
.
.
}
here i am creating labels on button click, you can do as your requirement
private void button2_Click(object sender, EventArgs e)
{
t1[i] = new TextBox();
l1[i] = new Label();
t1[i].Size = new System.Drawing.Size(244, 22);
t1[i].Location = new System.Drawing.Point(85, x);
l1[i].Location = new System.Drawing.Point(60, x);
l1[i].Font =new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
l1[i].Text = i.ToString()+". ";
t1[i].TabIndex = i;
t1[i].Name = "txt"+i;
panel1.Controls.Add(t1[i]);
panel1.Controls.Add(l1[i]);
panel1.AutoSize = true;
panel1.Show();
panel1.Refresh();
t1[i].Focus();
i++;
x = x +30 ;
noofcontrols++;
}