Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Sergey,
Thank you very much for your reply. I think I managed to figure out what was going on. The problem was that I didn't know when the Height property changed. The form was opened with DO FORM NOSHOW. In the form's Init method, I was setting its WindowState to 2 (maximized). I was expecting that the Height would change immediately. It didn't. I debugged the Form.Show event handling code. Inside there, the form still had its old height. But as soon as that code finished, the form's height changed as expected. So, I moved the code that cares about the form's height into the form's Activate method, which is fired after Show, and it worked.
Précédent
Suivant
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