In a Windows form, I can add controls into flowlayoutpanel dynamically by doing this:
for (int i = 0; i < 5; i++)
{
Button button = new Button();
butto.Name="btn_"+i.ToSting();
butto.Text=i.ToSting();
this.flowlayoutpanel1.Controls.Add(button);
}
It works very well, but when I set the variable 'i' to 1500, it seems like the flowlayoutpanel cannot display all its controls. Where is the error, and how can I solve?
What I want to do is create a user control which contains a flowlayoutpanel, and when I open a PDF document, I want to add an item which display thumbnails of each page into the flowlayoutpanel.