自己备忘下嘿嘿!
当 Windows Form 应用程序启动时顺序:
System.Windows.Forms.Control.HandleCreated
System.Windows.Forms.Control.BindingContextChanged
System.Windows.Forms.Form.Load
System.Windows.Forms.Control.VisibleChanged
System.Windows.Forms.Form.Activated
System.Windows.Forms.Form.Shown
当 Windows Form 应用程序关闭时顺序:
System.Windows.Forms.Form.Closing
System.Windows.Forms.Form.FormClosing
System.Windows.Forms.Form.Closed
System.Windows.Forms.Form.FormClosed
System.Windows.Forms.Form.Deactivate
本文详细介绍了WindowsForm应用程序从启动到关闭的整个生命周期中各事件触发的顺序,包括Load、Activated、Shown以及Closing、Closed等关键事件,对于理解WindowsForm应用程序的行为至关重要。
3757

被折叠的 条评论
为什么被折叠?



