Information générale
Titre:
Windows Form WinForm Event Cycle?
What events/methods are executed/called on a standard winform with any
number of controls? If this was VFP7, I would say the event model
followed:
Form.Load
FirstControl.Load
FirstControl.Init
SecondControl.Load
SecondControl.Init
etc
Form.Init
Form.Show
Form.Activate
Form.Refresh
FirstControl.Activate
FirstControl.Refresh
etc
Form.GotFocus
And then the "read events" cycle begins.
What is the order for .NET? I need to do some connection work in a
WinForm after the form loads but before the controls display and then
again before the user is allowed to touch the form. In VFP7 I would
stick appropriate code in the Form.Load and Form.Activate methods.
Thanks!
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