The AutoSize property for a TextBox is always true, called by the constructor. The property is hidden in the parent class (TextBoxBase), so as not to accidentally set it to false. It has [Browsable (false)] to hide it in the [EditorBrowsable (EditorBrowsableState.Never)] property grid to hide it in the IntelliSense popup. However, you can change it:
public partial class Form1 : Form { public Form1() { InitializeComponent(); textBox1.AutoSize = false; textBox1.Height += 10; } }
Yes, it looks great. Now you know why it is hidden.
source share