0 out of 2 rated this helpful - Rate this topic

ScrollableControl.AutoScrollMinSize Property

Gets or sets the minimum size of the auto-scroll.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
public Size AutoScrollMinSize { get; set; }

Property Value

Type: System.Drawing.Size
A Size that determines the minimum size of the virtual area through which the user can scroll.

The AutoScrollMinSize property is used to manage the screen size allocated to the automatic scroll bars.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Docs don't describe the function of this property.
The fact that its called the 'Minimum Size' is confusing to most people.  It's actually more like a Maximum Size or just plain Size.

The property should be set to the Actual Size of the content within the control. Because, when the actual size of the content is larger then the size of the control thats when the scroll bars need to show. 

So you should set the AutoScrollMinSize = Size of your Content.