Search code examples
c#winformsflowlayoutpanel

Panel isn't filling the space between the flow layout panel


I have this form, where the light blue is a flow layout panel and the white is a panel inside it.

This is the image of the VS windows forms.

It looks like this when running:

This is the end result

If you look carefully, you can see a small border around the edge of the white section.

Why doesn't the panel fill the space inside the flow layout panel? I haven't done any coding; I just saw a guy placed the panel over and it automatically filled the space.


Solution

  • It seems that the margin was bugging it. I fixed it by setting the margin to 0, it was 3 by default. Thanks to Jimi.