开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜