📅  最后修改于: 2022-03-11 14:48:49.231000             🧑  作者: Mango
// Set the MaximumSize property to a preferred maximum size.
tableLayoutPanel1.MaximumSize = new Size(10, 10);
// Or dock the TableLayoutPanel in your form.
tableLayoutPanel1.Dock = DockStyle.Fill;
// Set the AutoScroll property of the TableLayoutPanel to true.
tableLayoutPanel1.AutoScroll = true;