如何在VB.Net的面板中获取滚动条? [英] How to get scrollbar in Panel in VB.Net?

查看:399
本文介绍了如何在VB.Net的面板中获取滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在VB.Net中开发Windows应用程序.在这种情况下,存在一种情况,即只有一种形式,并且在该形式中有一个面板,并且在面板中有一个富文本框.

I am developing a Windows Application in VB.Net. In that, there is one case where there is one form, and in that form there is a Panel, and within the Panel there is a rich text box.

所以我的要求是在面板中获得一个滚动条.因此,当用户确实在面板上滚动时,富文本框可以像MS Office功能一样相应地滚动.

So my requirement is to get a scrollbar in the Panel. So when the user does scroll on the panel, the rich text box can scroll accordingly like MS Office functionality..

任何人都可以给我一个想法怎么做吗?

Can any one give me an idea how to do it?

推荐答案

对于Richtextbox,将.Dock属性设置为FILL,将.WordWrap属性设置为FALSE.

Set the .Dock property to FILL and the .WordWrap property to FALSE for the richtextbox.

还将面板的.Dock属性设置为FILL.

Also set the Panel's .Dock property to FILL.

这篇关于如何在VB.Net的面板中获取滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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