AutoSize

This property returns and sets a value that determines whether a control is automatically resized to display its entire contents.

Syntax

control.AutoSize [= Boolean]

Parameters

object
Object expression that evaluates to a PictureBox or Label control.
Boolean
Boolean expression that specifies whether the control is resized.

True causes the control to automatically resize to display its entire contents. False, the default, keeps the size of the control constant.