As you saw in the title i'm creating dynamic checkboxes with this code:
private void create_checks(int nr, string name)
{
checkBox[nr] = new CheckBox();
checkBox[nr].Size = new Size(20, 43);
checkBox[nr].Name = name;
checkBox[nr].Text = name;
checkBox[nr].Location = new Point(40, 20 + (nr * 20));
this.Controls.Add(checkBox[nr]);
}
But the checkboxes have no text, can someone help me?
Aucun commentaire:
Enregistrer un commentaire