Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you add a scrollbar to a Panel control with many controls in windows form application?

How do you add a scrollbar to a Panel control with many controls in windows form application?

like image 702
Chetan Avatar asked Apr 08 '09 14:04

Chetan


People also ask

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.

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.


1 Answers

Just set the AutoScroll property of your Panel to true and it will handle adding the scrollbars for you.

this.panel1.AutoScroll = true; 
like image 168
Samuel Avatar answered Oct 20 '22 08:10

Samuel