private void Form1_Load(object sender, EventArgs e) { randoms = GenerateRandoms(); timer1.Start(); reponse = suivant(); for (int i = 0; i < 10; i++) { lblarr[i] = new RoundButton(); lblarr[i].Size = new Size(30, 30); lblarr[i].Location = new Point(13 + i * 30, 11); panel1.Controls.Add(lblarr[i]); } }
private void rdBtn() { Panel panel3 = new Panel(); panel3.Location = new Point(130, 160); panel3.Size = new Size(350, 100); this.Controls.Add(panel3); for (int i = 0; i < 10; i++) { lblarr[i] = new RoundButton(); lblarr[i].Size = new Size(30, 30); lblarr[i].Location = new Point(13 + i * 30, 11); panel3.Controls.Add(lblarr[i]); } }