Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Must be doing something wrong
Message
De
27/09/2002 12:06:21
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:
00705290
Vues:
11
That's the problem. Thanks Cathi.

>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?
Thanks

Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform