如何将滚动条设置为面板控件 [英] how to set scroll bar to panel control

查看:104
本文介绍了如何将滚动条设置为面板控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将自动滚动属性设置为true时,如何将自动滚动条分配给Windows窗体应用程序中的面板控件.滚动条未出现,请帮助.

how to assign auto scroll bar to a panel control in windows form application, when i set auto scroll property true. the scroll bar not appeared please help.

推荐答案

嗨 您可以将Panel,TabControl或SplitContainer控件用作容器,然后将所有控件放入其中.将Panel控件的AutoScroll属性设置为true,以获取表单上的滚动条.将Panel控件停靠在Fill上,以使其出现在整个表单中.

注意:如果u停靠面板,则仅显示滚动条.如果主窗口较小,则显示面板,然后出现滚动条.
Hi You can use Panel, TabControl or SplitContainer control as container and place all of you contros into it. Set the AutoScroll property of Panel control to true for getting scroll bar on the form. Dock the Panel control to Fill so that it appear on entire form.

Note:IF u Dock the panel then only scroll bar appear.if main window small then panel then scroll bar appear.


这篇关于如何将滚动条设置为面板控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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