C# Programming
03-29-2009, 06:22 AM
I created a dynamic textbox with this codes below here. However if there are 2 or more textbox, it will come out side by side. Is there anyway to break them apart and put them in a new line?
for (int i = 0; i < textfieldNo; i++)
{
TextBox tb = new TextBox();
tb.ID = "txtChoice" + s;
Form.Controls.Add(tb);
s++;
}
for (int i = 0; i < textfieldNo; i++)
{
TextBox tb = new TextBox();
tb.ID = "txtChoice" + s;
Form.Controls.Add(tb);
s++;
}