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