如何在形式上上下 [英] how to top and down in form

查看:136
本文介绍了如何在形式上上下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用mouse_wheel在窗体中上下移动?

i想要在winform中使用m-wheel向上或向下移动...

how to top and down in form with mouse_wheel ?
i want when use m-wheel move to up or down in winform ...

推荐答案

添加滚动条。以下链接应该有所帮助 -

如何:滚动表单内容 [ ^ ]

C#中的垂直滚动 [ ^ ]

在Windows窗体上放置一个滚动条 [ ^ ]
Add scroll bars. The following links should help -
How to: Scroll Form Contents[^]
Vertical Scrolling in C#[^]
Putting a scroll bar on a Windows Form[^]


感谢Wes Aday,我可以理解您可能需要滚动(如果top和down可以理解为英语动词:-)。



首先,拥有一个需要滚动的表单或大多数其他容器控件是一个非常糟糕的UI设计的标志。所以,首先,考虑一下在这个级别上不需要滚动的正确设计。否则会造成非常糟糕的可用性。



如果你还需要滚动,请阅读 System.Windows.Forms.ScrollableControl

http://msdn.microsoft.com/en-us/library/system.windows.forms.scrollablecontrol(v = vs.110).aspx [ ^ ]。



注意从 ScrollableControl 派生的类。这个类的滚动相关操作应该从这个MSDN文档页面中看出来。



-SA
Thanks to Wes Aday, I can understand that you probably need scrolling (if "top" and "down" could be understood as English verbs :-).

First of all, having a form or most other container control which needs scrolling is a sign of really bad UI design. So, first of all, think about proper design which would not require scrolling on this level. Otherwise it would make really poor usability.

If you still need scrolling, please read about System.Windows.Forms.ScrollableControl:
http://msdn.microsoft.com/en-us/library/system.windows.forms.scrollablecontrol(v=vs.110).aspx[^].

Pay attention for the classes derived from ScrollableControl. The scrolling-related operations of this class should be apparent from this MSDN documentation page.

—SA


这篇关于如何在形式上上下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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