Add Cotrol Problem
-
I have a Problem To add dynamic control to the Form i save the controls in array list but when i add the control to Form The added ( the count property of this.Controls updated) But they areen' add to Form ( can't see any thing) my code is : int count = 1; foreach (MyControl _control in ArrayList) { this.Controls.Add(_control); _control.Location = new Point(count * 20, count *20); count++; } What's The Problem ? With Thanks MHF
-
I have a Problem To add dynamic control to the Form i save the controls in array list but when i add the control to Form The added ( the count property of this.Controls updated) But they areen' add to Form ( can't see any thing) my code is : int count = 1; foreach (MyControl _control in ArrayList) { this.Controls.Add(_control); _control.Location = new Point(count * 20, count *20); count++; } What's The Problem ? With Thanks MHF
Hi, I would first check if the
Size
andVisible
properties of the added controls are correct. Other than that the code principally looks fine. Robert -
Hi, I would first check if the
Size
andVisible
properties of the added controls are correct. Other than that the code principally looks fine. Robert