0
0452
Unregistered / Unconfirmed
GUEST, unregistred user!
创建的代码如下:for (i = 0;
i < ds1.Tables[0].Rows.Count;
i++) { string strname1 = ds1.Tables[0].Rows[0].ToString() + " " + ds1.Tables[0].Rows[1].ToString();
CheckBox Check_B = new CheckBox();
Check_B.Name = "Check_B" + i.ToString();
Check_B.Text = strname1;
Check_B.Location = new Point(10, j);
j = j + 20;
panel3.Controls.Add(Check_B);
}创建成功后如何访问?
i < ds1.Tables[0].Rows.Count;
i++) { string strname1 = ds1.Tables[0].Rows[0].ToString() + " " + ds1.Tables[0].Rows[1].ToString();
CheckBox Check_B = new CheckBox();
Check_B.Name = "Check_B" + i.ToString();
Check_B.Text = strname1;
Check_B.Location = new Point(10, j);
j = j + 20;
panel3.Controls.Add(Check_B);
}创建成功后如何访问?