I would like to set my form to be exactly 300*300 excluding heading and borders.
If I use Size property, it does include these values.
Is there any way how to do it?
You have two options, as follows:
To remove heading and borders from a Form, disable the Form's FormBorderStyle property.
FormBorderStyle
Set the interior of the form with the ClientSize property, as follows:
ClientSize
this.ClientSize = new Size(300, 300);
1.4m articles
1.4m replys
5 comments
57.0k users