Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Alex, I know what you mean, but Nancy might not.
For Nancy's benefit, the initialisation code will run each time the form is instantiated, not 'only when you run the form the first time'.
Alan
>>I haven't created a class yet; I guess this is a good time. If I do it this way, won't this.originaltop with this.top every time the form is refreshed?
>
>Alan's comment is sound advice. The answer is no. The Init() triggers upon form instantiation, not refresh. Therefore, the original, design-time position will be preserved (saved) only when you run the form the first time.
>
>HTH
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