I have a C # form with a significant border. I would like to set the minimum size (850, 760) (the initial default size), but when I try to set the value in the form's properties menu, it changes it to (850, 720). I tried to install it by code as follows:
this.minimumSize = new System.Drawing.Size(850, 760);
but when I run the code, I can still compress my shape vertically. Anyone have any ideas on what might be the problem?
EDIT: I use two monitors, one standard 1280x1024 and another widescreen 1366x768, maybe this is a problem? In this case, is there a way to check the resolution of the user monitor and set a minimum size based on this?
source share