如何将滚动条添加到Windows窗体应用程序中具有多个控件的Panel控件中? [英] How do you add a scrollbar to a Panel control with many controls in windows form application?

查看:93
本文介绍了如何将滚动条添加到Windows窗体应用程序中具有多个控件的Panel控件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将滚动条添加到Windows窗体应用程序中具有许多控件的Panel控件中?

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

推荐答案

只需将PanelAutoScroll属性设置为true,它将为您添加滚动条.

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

this.panel1.AutoScroll = true;

这篇关于如何将滚动条添加到Windows窗体应用程序中具有多个控件的Panel控件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆