码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2018-11-03 12:37:57      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:hand   关闭   got   info   form   binding   验证   create   visible   

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

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

标签:hand   关闭   got   info   form   binding   验证   create   visible   

原文地址:https://www.cnblogs.com/asdyzh/p/9899986.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!