Ali Vojdanian
Ali Vojdanian

Reputation: 2111

Scroll for child form in C#

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

Upvotes: 3

Views: 1830

Answers (2)

Reed Copsey
Reed Copsey

Reputation: 564373

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).

Upvotes: 2

General Grey
General Grey

Reputation: 3688

Set the Forms AutoSCroll Property to true

Upvotes: 4

Related Questions