Home > Blockchain >  Panel isn't filling the space between the flow layout panel
Panel isn't filling the space between the flow layout panel

Time:06-22

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.

CodePudding user response:

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.

CodePudding user response:

You should set Panel.Dock to Fill, then it adapts it's size automatically to the flow layout panel. Default for Dock is usaually None, in this case it always keeps the same size.

  • Related