UserControl.AutoSizeMode Property


Gets or sets how the control will resize itself.

 property System::Windows::Forms::AutoSizeMode AutoSizeMode { System::Windows::Forms::AutoSizeMode get(); void set(System::Windows::Forms::AutoSizeMode value); };
public System.Windows.Forms.AutoSizeMode AutoSizeMode { get; set; }
member this.AutoSizeMode : System.Windows.Forms.AutoSizeMode with get, set
Public Property AutoSizeMode As AutoSizeMode

Property Value

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

Applies to