Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Must be doing something wrong
Message
 
À
27/09/2002 09:27:07
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00705203
Message ID:
00705278
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform