Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2005

Tip: Looking for answers? Try searching our database.

.NET 2.0 Form Minimum Size Bug

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Henning - 06 Aug 2005 22:42 GMT
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?
Herfried K. Wagner [MVP] - 07 Aug 2005 01:08 GMT
"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
[quoted text clipped - 5 lines]
> 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.

Signature

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

Chris Dunaway - 08 Aug 2005 20:48 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.