The TableLayoutPanel is an example of a ScrollableControl. You can therefore set it’s AutoScroll property to True and the control will automatically create scroll bars when it’s preferred size exceeds its current size. This will provide you with the desired effect with minimal hassle.
Procedure
- Set the
MaximumSizeproperty to a preferred maximum size or you can dock the TableLayoutPanel in your form. - Set the
AutoScrollproperty of the TableLayoutPanel to true.
FYI:
The Panel, ToolStrip, FlowLayoutPanel, SplitterPanel, TableLayoutPanel, TabPage and ToolStripContentPanel all inherit the ScrollableControl class so this answer applies to them as well.