Re: .NET 2.0 Form Minimum Size Bug
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Sun, 7 Aug 2005 02:08:55 +0200
"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/>
.
- Prev by Date: Re: Unusual copyright question
- Next by Date: Re: Form component like common Openfiledialog
- Previous by thread: .Net Framework Memory Leak
- Next by thread: Re: .NET 2.0 Form Minimum Size Bug
- Index(es):