Order between OnHandleCreated and OnLoad
On a wi开发者_运维知识库ndows form, is there a guaranteed firing order between these, does anyone know? This is on .NET v2. It appears to be the former(sorry) first.
Thanks
OnHandleCreated
comes first.
From the documentation:
The Form and Control classes expose a set of events related to application startup and shutdown. When a Windows Forms application starts, the startup events of the main form are raised in the following order:
Control.HandleCreated
Control.BindingContextChanged
Form.Load
Control.VisibleChanged
Form.Activated
Form.Shown
精彩评论