Hello! i have a weird label problem . If i introduce something like the code below, even though i create a label with the same attributes but different location , it only displays the first. If i comment the "a" section and leave the details for the b label, the b label is displayed correctly . What is wrong? Regards, Alexandru Badescu
a = new Label();
a.Name = listaS.ElementAt(i).nrSucursala;
a.Location = new Point(20, 3);
a.Text = listaS.ElementAt(i).nrSucursala + "";
this.panel1.Controls.Add(a);
b = new Label();
b.Name = listaS.ElementAt(i).nrSucursala;
b.Location = new Point(20, 11);
b.Text = listaS.ElementAt(i).nrSucursala + "";
this.panel1.Controls.Add(b);