Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent Child Form Resizing
Message
De
19/11/2010 11:11:23
 
 
À
19/11/2010 11:04:37
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 4.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Divers
Thread ID:
01489767
Message ID:
01489794
Vues:
29
>I was mistaken. When the child form is first initialized the height and width are correct. When the frm_srch_Load method is called the height and width are larger. Something is happening to the child form in between the form initializing and the form load. I tried putting the code you provided in the frm_srch_load method and still have the same results.
>
>public frm_srch()
>Form is correct height and width
>
>private void frm_srch_Load(object sender, EventArgs e)
>Form is larger than values set at design time.

The code I supplied was a complete form class. Try instantiating that *instead* of your existing child form. If it is the correct size then there must be something in your version of frm_srch that is causing the behaviour. If the class I listed also shows at the wrong size then presumably something external to the form is changing the size.....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform