容器怎么换行
我定义了一个容器,用for 循环往里面添加一个label和textbox控件,但是显示出来的时候没有换行,请问怎么每for循环一次怎么加换行, 急,在线等
for (int i = 0; i < num; i++)
{
Label lb = new Label();
lb.Text = "区间" + ds.Tables[0].Rows[0][i].ToString();
this.Panel1.Controls.Add(lb);
TextBox tb = new TextBox();
tb.Text = dspro.Tables[0].Rows[0][i + 12].ToString() + "\r\n";
this.Panel1.Controls.Add(tb);
}