for (int i = 0; i < 9; i++) { Panel pan = new Panel(); pan.Name = "panel" + i; pan.Location = new Point(46, 76 + i * 105); // pan.Size = new Size(340, 100); Label l = new Label(); l.Text = "something"; l.Font = new Font("Segoe UI", 12); l.AutoSize = true; RadioButton mr =new RadioButton(); mr.Name = "mrb" + i; //mr.Location = new Point(46,90+i*105); mr.Font = new Font("Segoe UI", 12); mr.Show(); RadioButton mr1 =new RadioButton(); mr1.Name = "mrb" + i; // mr1.Location = new Point(46+mr.Size.Width+5, 90 + i * 105); mr1.Font = new Font("Segoe UI", 12); RadioButton mr2 =new RadioButton(); mr2.Name = "mrb" + i; // mr2.Location = new Point(46+mr1.Size.Width+5, 90 + i * 105); mr2.Font = new Font("Segoe UI", 12); pan.Controls.Add(l); pan.Controls.Add(mr); pan.Controls.Add(mr1); pan.Controls.Add(mr2); ls.Add(pan); this.Controls.Add(pan); pan.Show(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)