Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scroll for child form in C#

Tags:

c#

winforms

In the winform it has child forms and I use these codes for being Sorted :

this.LayoutMdi(MdiLayout.TileHorizontal);

But there is question. This form has 4 child forms when I use that code it will be sorted but there is no scroll or something in the child form so that can let users see all form controls. I want to know how can I use a scroll bar that when form has been smaller we could scroll the child form and see all of its controls.

Thanks in advance

like image 377
Ali Vojdanian Avatar asked Dec 31 '25 23:12

Ali Vojdanian


2 Answers

Set the Forms AutoSCroll Property to true

like image 132
General Grey Avatar answered Jan 03 '26 11:01

General Grey


You should be able to turn on AutoScroll on the Form to add scrollbar functionality for you. This technique works with many Windows Forms objects (anything deriving from ScrollableControl).

like image 33
Reed Copsey Avatar answered Jan 03 '26 11:01

Reed Copsey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!