System.Windows.Forms.Form.AutoSizeMode Property

Gets or sets the mode by which the form automatically resizes itself.

Syntax

[System.ComponentModel.DefaultValue(System.Windows.Forms.AutoSizeMode.GrowOnly)]
[System.ComponentModel.Localizable(true)]
[System.ComponentModel.Browsable(true)]
public AutoSizeMode AutoSizeMode { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Setting the Form.AutoSizeMode property to a new value causes the form to be laid out again.

A form does not automatically resize in the Visual Studio forms designer, regardless of the values of the Form.AutoSize and Form.AutoSizeMode properties. The form correctly resizes itself at run time according to the values of these two properties. By contrast, a custom System.Windows.Forms.UserControl automatically resizes itself both at design time and at run time.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0