[]
Gets or sets a value indicating whether the textbox size can decrease to match its contents.
public bool CanShrink { get; set; }
A bool value where true indicates the textbox size can shrink to fit the contents; otherwise, false. The default is false.
true
false
TextBox textBox = new TextBox(); textBox.CanShrink = true;