Search code examples
vb.netflowlayoutpanel

FlowLayoutPanel bottom inner spacing


So I'm having troubles making my FlowLayoutPanel work the way I want.

When adding multiple controls to it so that vertical scroll appears and when scrolled to bottom I don't want controls to be touching the bottom border of FlowLayoutPanel.


Padding works properly for all but the bottom side, controls are properly spaced away from the edges of the FlowLayoutPanel, I don't know why bottom is special.

I need a solution that does not include adding invisible/transparent controls to it.

The closest I got to what I want was lowering the clientsize by some amount, but then in that area control doesn't repaint so it shows parts of added controls forever.


Solution

  • Kind of fixed with with larger margins on child controls, so I'm closing this.