用于可视工作室窗口的垂直和水平滚动条 [英] vertical and horizontal scrollbar for visual studio windows form

查看:80
本文介绍了用于可视工作室窗口的垂直和水平滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2012中使用VB在Windows上创建垂直和水平滚动条的编码是什么?



在VB设计表单中创建滚动条之后如何制作它有效吗?

解决方案

假设你使用的是WinForms:

  Dim  vs  As  VScrollBar =  VScrollBar()
Dim hs As ScrollBar = Nnew HScrollBar()

但是您必须调整大小并找到它们你自己,并在它们显示之前将它们添加到Form.Controls集合中。



或者......你可以将它们从工具箱拖到设计师的表单上...


what is the coding for creating vertical and horizontal scrollbar on windows form VB in Visual Studio 2012?

after creating the scrollbar in VB design form how do i make it work?

解决方案

Assuming you are using WinForms:

Dim vs As VScrollBar = New VScrollBar()
Dim hs As ScrollBar = Nnew HScrollBar()

But you will have to size and locate them yourself, and add them to the Form.Controls collection before they are displayed.

Or...you could just drag them from the toolbox onto your form in the designer...


这篇关于用于可视工作室窗口的垂直和水平滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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