Creating Scrollable Forms

A scrollable form is a form that can display scrollbars when its contents are larger than the physical size of the form. Not only is this a cool yet necessary feature, but it's also trivial to implement in your own applications.

The scrolling behavior of a form is determined by the following three properties:

PropertyDescription
AutoScrollThis property determines whether scrollbars will ever appear on a form.
AutoScrollMinSizeThe minimum size of the scroll region (area). If the size of the form is adjusted so that the client area of the form (the area of the form not counting borders and title bar) is smaller than the AutoScrollMinSize, scrollbars will appear.
AutoScrollMarginThis property determines the margin given around ...

Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.