Wrap your Buttons into a TableLayoutPanel
:
Create a TableLayoutPanel
with two columns and one row. Set the size of each column to 50%
. Set the Dock
property to DockStyle.Bottom
.
Add a Button
to each column. Set the Dock
property of each Button
to DockStyle.Fill
.
Add this TableLayoutPanel
to your Form
/Container
instead of the two Buttons directly: