表单滚动条-需要帮助:) [英] Form Scrollbar - Need Help :)

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

问题描述

问候,

Greetings,

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    VScrollBar1.Maximum = (Panel1.Height - Me.Height) + 500
    VScrollBar1.SmallChange = 50
    VScrollBar1.LargeChange = 100
End Sub
Private Sub VScroll1_Change()
    Panel1.Top = 0 - VScrollBar1.Value
End Sub



我尝试了这段代码,但似乎没有用,对到达这里有帮助吗? :)

我想要的是滚动浏览表单,也许面板不是正确的方式,或者我使用的是错误的代码?

Visual Studio 2010:)



I tried this code, but doesn''t seem to work, any help to get here ? :)

What i want is to scroll through my Form, maybe a Panel isn''t the right way to do it, or maybe i''m using a Wrong Code ?

Visual Studio 2010 :)

推荐答案

好吧,所以我再简单不过了.

我只是将AutoScroll设置为True @形式,它现在就像一个超级按钮一样.
Okay so i t couldn''t be any more easy than this.

I just set AutoScroll to True @ the form and it works like a charm now.


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

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