Windows Forms LayoutManagers Overview

11 Oct 20221 minute to read

GridLayout is a layout manager. It allows you arrange the child controls in a grid that contains rows and columns. By deriving from the layout manager base, the GridLayout inherits all the functionalities that the LayoutManager type exposes. In its simplest form, this layout manager can be used to automatically arrange the child components in one or more rows.

GridLayout for Windows Forms allows to arrange child controls in a grid containing rows and columns

Key features

  • Rows and Columns: Provide an option to customize row and column span of the child controls.

  • HGap and VGap: Provide an option to set the gaps between child controls such as horizontal and vertical direction.