Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Must be doing something wrong
Message
 
To
27/09/2002 09:27:07
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00705203
Message ID:
00705278
Views:
9
MinimumSize property does not work for MdiChild forms. It should work for all other types of forms. Microsoft is aware of this bug and have stated that it will be fixed in a future release. One work around developers have used is to check if the Form has been resized to a smaller size than MinimumSize (and resizing it back) in the Resize event handler for the child form.
private void ChildFrm_Resize(object sender, System.EventArgs e)
    {
        // Please modify code according to your requirement
        int CurrHt=this.Height;
        int MinHt=this.MinimumSize.Height;
        if( CurrHt <= MinHt)
        {
            CurrHt = MinHt;
            return;
        }
    }
>Hello,
>
> I have a Windows form and have set the MinimumSize property. When I run the program I can go past the MinimumSize property value. Has anyone else had this problem? Is there another property that I need to set?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform