C# Winforms TableLayoutPanel middle align the control

TableLayoutPanel control represents a panel that dynamically lays out its contents in a table format. You want to use a TableLayoutPanel in complex and sophisticated applications where you need to create dynamic layouts.TableLayoutPanel

By default when you add controls to the TableLayoutPanel, it sets them to the top left corner. When you want to align these controls (for exam, Button) to be middle, Set the value of the Button control’s Anchor property to None. The Button control moves to the center of the cell.