Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get scrollbar in Panel in VB.Net?

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.

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?

like image 232
Brijesh Patel Avatar asked Sep 20 '12 06:09

Brijesh Patel


People also ask

How do I add a ScrollBar in Visual Basic?

Double-click the form you want to use to display a scroll bar control. Drag and drop the control from the Visual Studio toolbox to the form. Use your mouse to place the scroll bar.

How do I add a ScrollBar in Visual Studio?

Open the Scroll Bars options page by choosing Tools > Options > Text Editor > All Languages > Scroll Bars.

What are the two types of scroll bar controls explain?

The ScrollBar controls display vertical and horizontal scroll bars on the form. This is used for navigating through large amount of information. There are two types of scroll bar controls: HScrollBar for horizontal scroll bars and VScrollBar for vertical scroll bars. These are used independently from each other.


1 Answers

Set Panel.AutoScroll = True and scrollbars will automatically appear whenever any controls in the panel fall outside its boundaries.

like image 56
Peladao Avatar answered Sep 23 '22 18:09

Peladao