其他分享
首页 > 其他分享> > winform窗体的生命周期和事件加载顺序是什么?

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

标签:Control,Form,LostFocus,GotFocus,Leave,窗体,winform,加载
来源: https://www.cnblogs.com/newcapecjmc/p/14269241.html