在表单中添加滚动条 [英] Adding a scroll bar in the form

查看:922
本文介绍了在表单中添加滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在表单中添加滚动条。我该怎么做?

以及独立应用程序表单的标准维度应该是什么。

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 the Form.AutoScroll property:
http://msdn.microsoft.com/en-us/library/a62htd5x.aspx[^]

In WPF, use a ScrollViewer:
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 an AutoScroll property that can handle this scenario pretty well.
Also can view:
ScrollableControl.AutoScroll Property [^]


这篇关于在表单中添加滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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