I am having an issue with the table layout panel.

  • I have 4 autosize rows and the last one is "fixed size". The last row also inherits any overflow via default tablelayoutpanel behavior.
  • My auto-size rows contain collapsible controls


The problem is when collapsing and expanding controls, the vertical scrollbar is incorrect. If I continue to perform layout 3 or four times, eventually the vertical scrollbar disappears.

How do you force the table layout panel to resize itself and forget any previous state?

Thanks,
Eric