UserControl::AutoSizeMode Property
.NET Framework (current version)
Gets or sets how the control will resize itself.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(true)] property AutoSizeMode AutoSizeMode { AutoSizeMode get(); void set(AutoSizeMode value); }
Property Value
Type: System.Windows.Forms::AutoSizeModeA value from the AutoSizeMode enumeration. The default is GrowOnly.
Controls that do not recognize the AutoSizeMode property will function as though AutoSizeMode was set to GrowAndShrink. All controls that recognize the AutoSizeMode property will, by default, grow to fit available space, but will not shrink below the value specified by the Size property.
.NET Framework
Available since 2.0
Available since 2.0
Show: