Flowlayoutpanel limits

G

Guest

Is there an upper limit on what FlowLayoutPanel will display?

I wrote a test that adds 395 buttons to a flowlayoutpanel and it stopped
displaying them after button 310, cutting 310 in half. It allocated enough
room in the frame. There's just no button visible after button 310.

This is not a frivolous question as I'm using flowlayoutpanel for a
photoview layout in a home inventory program.

Any help would be much appreciated.

Thank you,

Liam Johnstone
 
G

Guest

While I didn't figure out why FlowLayoutPanel doesn't draw the items below a
certain point, I found a workaround.
Attach an event handler to Scroll, where you perform
FlowLayoutPanel.PerformLayout() and it will draw the controls when you get to
them.
Looking at it now, it seems pretty obvious. Ah well...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top