Versions des environnements
Network:
Windows 2000 Server
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement