How do you add a scrollbar to a Panel control with

2020-02-20 05:59发布

问题:

How do you add a scrollbar to a Panel control with many controls in windows form application?

回答1:

Just set the AutoScroll property of your Panel to true and it will handle adding the scrollbars for you.

this.panel1.AutoScroll = true;