在表单中添加滚动条 [英] Adding a scroll bar in the form
本文介绍了在表单中添加滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在表单中添加滚动条。我该怎么做?
以及独立应用程序表单的标准维度应该是什么。
I want to add a scroll bar to my form. How do I do it?
And also what should be the standard dimension of the form for an stand alone application.
推荐答案
在Windows中表格,使用Form.AutoScroll
属性:
http://msdn.microsoft.com/en-us/library/a62htd5x.aspx [ ^ ]
在WPF中,使用ScrollViewer
:
http ://msdn.microsoft.com/en-us/library/system.windows.controls.scrollviewer.aspx [ ^ ]
In Windows Forms, use theForm.AutoScroll
property:
http://msdn.microsoft.com/en-us/library/a62htd5x.aspx[^]
In WPF, use aScrollViewer
:
http://msdn.microsoft.com/en-us/library/system.windows.controls.scrollviewer.aspx[^]
您不需要添加 ScrollBar 的。表单有一个AutoScroll
属性,可以很好地处理这个场景。
也可以查看:
ScrollableControl.AutoScroll Property [ ^ ]
You should not need to add a ScrollBar. The Form has anAutoScroll
property that can handle this scenario pretty well.
Also can view:
ScrollableControl.AutoScroll Property [^]
这篇关于在表单中添加滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文