Re: .NET 2.0 Form Minimum Size Bug

Tech-Archive recommends: Speed Up your PC by fixing your registry



"Bill Henning" <please @ nospamforactiprosoftware.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


.


Quantcast