Gina Kia

Gina Kia

  • NA
  • 5
  • 477

Working With FlowLayoutPanel

Jul 26 2021 11:29 AM

The FlowLayoutPanel control is a container control that provides dynamic layout for the child controls that can be arranged horizontally or vertically. The flow direction of the control sets the direction of arrangements of controls.

Creating a FlowLayoutPanel

We can create a FlowLayoutPanel control using the Forms designer at design-time or using the FlowLayoutPanel class in code at run-time (also known as dynamically).....

Design-time

To create a FlowLayoutPanel control at design-time, you simply drag and drop a FlowLayoutPanel control from Toolbox to a Form in Visual Studio. After you drag and drop a FlowLayoutPanel on a Form, the FlowLayoutPanel looks like Figure 1. Once a FlowLayoutPanel is on the Form, you can move it around and resize it using the mouse and set its properties and eventsmk