0
public void test()
{
List<int> list = new List<int>();
list.Add(1);
list.Add(2);
list.Add(3);
for (int i = 1; i <= list.Count; i++)
{
textBx.Text = list[i].ToString();
// I want it to be textBx1.Text = list[1].ToString();
textBx2.Text = list[2].ToString();
textBx3.Text = list[3].Tostring();
etc.
// I can't create textbox dynamically as I need the text box to be placed in specific places in the form . How do I do it the best way?
}
}
您可能需要使這個遞歸函數,因爲CurrentControl可以有子控件,例如,如果CurrentControl一張桌子和文本框都各在不同的行/細胞表,我認爲你的功能沒有找到文本框。 – Jeremy 2009-01-05 03:19:39