开发者

Order between OnHandleCreated and OnLoad

开发者 https://www.devze.com 2023-01-25 03:31 出处:网络
On a wi开发者_运维知识库ndows form, is there a guaranteed firing order between these, does anyone know? This is on .NET v2.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消