日期:2014-05-18 浏览次数:20780 次
CheckBox[] name = new CheckBox[num]; for (int i = 0; i < num; i++) { name[i] = new CheckBox(); name[i].Text = fileName[i]; name[i].Location = new Point(20, 10 + i * 25); name[i].Size = new Size(104, 16); name[i].Checked = false; pointStyleDlg.panel2.Controls.Add(name[i]); }