https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/walkthrough-arranging-controls-on-windows-forms-using-a-flowlayoutpanel?view=netframeworkdesktop-4.8&redirectedfrom=MSDN
Arrange Controls Using FlowLayoutPanel - Windows Forms | Microsoft Learn
Learn how to use the FlowLayoutPanel control and the TableLayoutPanel control to provide intuitive ways to arrange controls in your Windows Forms project.
windows formsarrangecontrolsusingmicrosoft