📜  如何使面板可滚动c#代码示例

📅  最后修改于: 2022-03-11 14:49:06.004000             🧑  作者: Mango

代码示例1
ScrollBar vScrollBar1 = new VScrollBar();
vScrollBar1.Dock = DockStyle.Right;
vScrollBar1.Scroll += (sender, e) => { panel1.VerticalScroll.Value = vScrollBar1.Value; };
panel1.Controls.Add(vScrollBar1);