Go to your form in VS and press F4 to get to the properties of the form and look for the MinimumSize property:
To set the size from code use:
this.MinimumSize = new Size(100, 100);
Note that this does not prevent minimising/maximising the form! If you want to prevent this, then set the MaximizeBox
property to false
.