using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace TestLayout{ public partial class Form1 : Form { public Form1() { InitializeComponent(); for (int i = 0; i < 500; i++) { //Create a new panel Panel p = new Panel(); //Set the panel size p.Size = new Size(350, 350); //Set the border for make the panel visible p.BorderStyle = BorderStyle.FixedSingle; //Create a new label used for display the panel number Label lb = new Label(); lb.Text = i.ToString(); //Add the label to the panel p.Controls.Add(lb); //Add the panel to the FlowLayoutPanel flowLayoutPanel1.Controls.Add(p); } } }}