如何在C#窗体中添加滚动条? [英] How to add scroll bar on a panel in C# windows form?
本文介绍了如何在C#窗体中添加滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的窗体上有一个面板,我正在绘制超出面板的形状,所以我想添加一个滚动条。我该怎么办??????????????
我的尝试:
i在面板属性中设置了autoScroll = true
i have a panel on my windows form on which i am drawing shapes that are going beyond the panel so i want to add a scroll bar. what should i do?????????????????
What I have tried:
i have set the autoScroll=true in properties of panel
推荐答案
了解滚动如何在Panel
,您必须注意其基类的功能System.Windows.Forms.ScrollableControl
:
ScrollableControl Class(System.Windows) .Forms) [ ^ ]。
我认为一切都在备注一节中得到了很好的解释。
-SA
To understand how scrolling works onPanel
, you have to pay attention for the functionality of its base classSystem.Windows.Forms.ScrollableControl
:
ScrollableControl Class (System.Windows.Forms)[^].
I think everything is well explained in the section "Remarks".
—SA
这篇关于如何在C#窗体中添加滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文