79502340

Date: 2025-03-11 23:43:43
Score: 0.5
Natty:
Report link

The approach of using a TableLayoutPanel mentioned in the comments by @Idle_Mind and dynamically hiding/showing rows is definitely one option.

Another I'd like to mention is the SplitContainer control.

It consists of two panels that can stack horizontally or vertically with a separator in-between. And it allows hiding one of the panels so the other takes up the size for both.

simple form with buttons and splitcontainer

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Idle_Mind
  • High reputation (-1):
Posted by: Sal