C
Craig Lister
Newish to c# - Coming from Delphi. I'd like to add 255 checkboxes to a
screen at runtime, and name then cb1, cb2... cb255
The code below does not work, but, how can I get this to work?
public void prepScreen()
{
CheckBox[] chkBox = new CheckBox[255];
for (int i = 1; i < 256; i++)
{
chkBox.Visible = true;
chkBox.Left = 100;
chkBox.Parent = groupBox1;
}
}
screen at runtime, and name then cb1, cb2... cb255
The code below does not work, but, how can I get this to work?
public void prepScreen()
{
CheckBox[] chkBox = new CheckBox[255];
for (int i = 1; i < 256; i++)
{
chkBox.Visible = true;
chkBox.Left = 100;
chkBox.Parent = groupBox1;
}
}