I have a dataset contains some records. I want to iterate through the loop until all the records are over. I will create an instances of "Panel" controls like below for each iteration.
Panel P = new Panel();
P.Location = new Point(PLocationX,PLocationY);
I am gettting the "PLocationX" & "PLocationY" from database.
My problem is how to use "AddRange" method so that i can add all the "Panles" to the form dynamically !!
if i write
this.Controls.AddRange(new Windows.Forms.Controls (P))
it is creating only one instance of Panel but not all !!
Advance ThanX for your time & patience.