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?
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.
Open the Scroll Bars options page by choosing Tools > Options > Text Editor > All Languages > Scroll Bars.
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.
Set Panel.AutoScroll = True
and scrollbars will automatically appear whenever any controls in the panel fall outside its boundaries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With