From my own research this does not seem to fall into the same category as the DPI situation for which it is said to be a duplicate. This situation is clearly a result of the settings of the "AutoScaleMode" and "Font" properties as I mention below !
I've recently started writing some code in C# using Visual Studio 2017. I have a form that I do not want to be resized any smaller than a certain size. Using the property view I set the form's MinimumSize property to that size and yet when I run it I am able to resize it to a smaller size. It does however have a limit I just don't know how it determines that limit. Am I missing something here?
So I tried a simple form program:
- One form
- Form size minimum set to 500 x 500
- Form original size set to 500 x 500
- One label on the form
- One handler that writes the size of the form to the label on a resize
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_ResizeEnd(object sender, EventArgs e)
{
Size sz = this.Size;
label1.Text = sz.Width + "x" + sz.Height;
}
}
}
And when I run this, it starts out at something like 324x232. I am able to resize this all the way down to 198x232. I don't understand. Can somebody please expalain?