您的位置:首页 > 其它

Order of Events in Windows Forms——Windows Foms 事件加载顺序

2012-12-11 10:19 639 查看
原文链接:

http://msdn.microsoft.com/en-us/library/86faxx0d.aspx

Application
Startup and Shutdown Events

ControlHandleCreated

ControlBindingContextChanged

FormLoad

ControlVisibleChanged

FormActivated

FormShown

When an application closes, the shutdown events of the main form are raised in the following order:

FormClosing

FormFormClosing

FormClosed

FormFormClosed

FormDeactivate

The ApplicationExit event of the Application class
is raised after the shutdown events of the main form.

注:如果想计算Window Form从启动到完全显示出来,可以在FormShown事件中进行处理。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: