.NET 2.0 Form Minimum Size Bug

  • Thread starter Thread starter Bill Henning
  • Start date Start date
B

Bill Henning

We've located a bug in .NET 2.0 where no matter what settings we make on a
Form, it will now size smaller than 123 width by 34 height. In .NET 1.0 and
1.1, setting the border style to None and setting MinimumSize property to
1x1 (along with other settings like no control box, minimize button, etc.)
would allow forms of any small size.

The only way we've found to allow the size to be smaller in .NET 2.0 is to
intercept the WM_GETMINMAXINFO message to the Form and provide our own data.

Is this a confirmed bug by Microsoft?
 
Bill Henning said:
We've located a bug in .NET 2.0 where no matter what settings we make on a
Form, it will now size smaller than 123 width by 34 height. In .NET 1.0
and 1.1, setting the border style to None and setting MinimumSize property
to 1x1 (along with other settings like no control box, minimize button,
etc.) would allow forms of any small size.

The only way we've found to allow the size to be smaller in .NET 2.0 is to
intercept the WM_GETMINMAXINFO message to the Form and provide our own
data.

You may want to check if the bug has already been reported and report it
yourself if it has not yet been reported by someone else:

<URL:http://lab.msdn.microsoft.com/productfeedback/>

I remember that the limitation you described already existed in .NET
1.0/1.1, and that it could be fixed by assigning a rectangular region of
appropriate size to the form's 'Region' property at runtime.
 
Just out of curiosity, of what use is a form that is 1x1? Even 123x34
is pretty useless, except maybe as a small button bar.

Just wondering.
 
Back
Top