How to reproduce:
Create a new form. Set FormBorderStyle to 'None' and StartPosition to
'Manual'. Resize the form to width = 200 and height = 16. Now show the form
somewhere from your main form, e.g. in the OnClick event.
Form1 test = new Form1();
private void SoftTerminal_Click(object sender, System.EventArgs e)
test.Size = test.ClientSize; // borderless form, should be the same anyway
This is the output:Quote:}
The method Show() enlarges the form! Strangely, if the form is big enought,
say 200x80 no enlargment takes place.
The only workaround I have found, is to resize the form after it has been
shown, but this gaves a flickering effect.
System.Drawing.Size mySize = test.ClientSize;
test.ClientSize = mySize;
test.Size = mySize;
Why does Show() change the size of a Form? I would call this a bug.