WinForm 生命周期, WinForm 事件执行顺序

1.窗体启动:

Control.HandleCreated
Control.BindingContextChanged
Form.Load
Control.VisibleChanged
Form.Activated

Form.Shown

 

2.窗体关闭:
Form.Closing
Form.FormClosing
Form.Closed
Form.FormClosed
Form.Deactivate

 

3.控件焦点与验证事件:

Enter
GotFocus
Leave
Validating
Validated
LostFocus

 

4.鼠标周期:

Enter
GotFocus
LostFocus
Leave
Validating
Validated

posted on 2018-11-03 10:50  asdyzh  阅读(584)  评论(0编辑  收藏  举报

导航