0

i created a custom control and tried to add this 500 times using for loop in a flowlayoutpanel

. But the flowlayoutpanel not showing/rendering after 438.

my custom control;

enter image description here

flowlayoutpanel not rendering after 438

enter image description here

Ragu
  • 51
  • 4
  • I assume the height f your UserControl is around ~70-73 pixels (plus the border)... – Jimi Oct 28 '20 at 04:45
  • 1
    Meaning, there's a limit related to both the ScrollBars max values and the ClientSize of a Control. You have reached both. There are a few method to overcome this limit. A weird one is to use a DataGridView (or a ListView) in virtual mode. Or *faking* the scrolling of a Container. Here's a good example of the latter: [Fake-scrolling containers with very many controls](https://stackoverflow.com/a/39810717/7444103). It looks quite similar to yours. – Jimi Oct 28 '20 at 05:23

0 Answers0