Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Column not found
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00180873
Message ID:
00181428
Vues:
6
>>However, the form Resize event fires during the shutdown process. If you read Stephen's reply, I think he may be on to it. Probably has something to do with the destruction of the objects and/or the order of destruction when the form is shut down, so even tho the objects are "still defined", they must not be "seeable" when the Resize is fired during shutdown. As Stephen suggested, I guess I'll just put a flag in to test when the form is shutting down.
>
>Hi Bill -- I got curious and tested a bit - the grid resize doesn't seem to run unless it is actually resized. But the form resize runs a LOT. Once on opening, and THREE times on closing, for my test case. So any code there may need monitoring, as with Stephen's idea, for sure.

Yeah, there seems to be a lot going on behind the scenes that we don't know about. A lot of events seem to fire a lot more than we would suspect. I finally put a flag in the form to indicate when the form is closing and I test it in the form's Resize event to determine if I execute the grid resize code. Hmmm ... I wonder if removing the menu from the form at a different point would matter? I am currently removing it in the Destroy of the form per MS's instructions.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform