现在的位置: 首页 > 综合 > 正文

C#WinForm窗体事件执行次序

2013年08月29日 ⁄ 综合 ⁄ 共 620字 ⁄ 字号 评论关闭

http://www.cnblogs.com/76674718/archive/2010/06/29/1767394.html

当 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

 当应用程序关闭时,会以下列顺序引发主要表单的关闭事件:         
        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

抱歉!评论已关闭.