winform窗体的生命周期和事件加载顺序是什么?
winform窗体的生命bai周期和事件du加载顺序,如下:
zhi1.窗体启动:
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
“fool me once,shame on you. fool me twice, shame on me.”,翻译过来的意思是“愚弄我一次,是你坏;愚弄我两次,是我蠢”。