Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set scroll bar in Windows form

Tags:

c#

.net

I have a winform in .net and I place too many controls and set the height and width of form. But when I compile the form and decrease the size of form my controls are not visible. When I increase the size of form the controls are visible at their own places.

I want a scroll bar to appear when I decrease the size of form and the scroll bar to disappear when we increase the form size.

like image 736
user1448783 Avatar asked Dec 20 '22 16:12

user1448783


1 Answers

You need to use the Panel control as container of your child controls and set "AutoScroll" property to true.

like image 101
Sethu Avatar answered Feb 19 '23 01:02

Sethu