C#打开关闭窗体事件顺序
2009-01-29 13:05
555 查看
应用程序启动与关闭事件 Form 和 Control 类和应用程序启动与关闭有关的时间。
当 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
当 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
相关文章推荐
- C#打开关闭窗体事件顺序
- Winform模态窗体关闭时赋值给打开自身的窗体(C# 事件委托版)
- Winform模态窗体关闭时赋值给打开自身的窗体(C# 事件委托版)
- C#的web开发,窗体的打开和关闭几种语句
- Windows 窗体启动和关闭的事件顺序
- C#.NET常见问题(FAQ)-如何捕捉窗体关闭的事件,弹窗确认是否退出
- [转]使用C#打开新窗口关闭旧窗口的方法;winform中防止重复打开多个相同子窗体
- C# 实现MDI子窗体只打开一个(打开新的窗口,关闭其他窗口)
- C#Form打开一个新窗口的同时关闭这个窗体
- WINFORM 父窗体Load事件中打开子窗体并关闭自身
- 使用C#打开新窗口关闭旧窗口的方法;winform中防止重复打开多个相同子窗体
- C#窗体关闭事件的重载实例(转)
- c# 做的登录窗体,登录成功后当前登录Form关闭,打开Main窗体,但Main窗体点关闭按钮后程序仍在进程怎么办
- C#中重载窗体关闭事件
- c#实现关闭当前窗体并打开另一个已经创建的窗体
- Windows 窗体启动和关闭的事件顺序
- C#父窗体关闭打开的子窗体
- Windows 窗体启动和关闭的事件顺序
- 蛋疼的让C#控制台程序(Console)像窗体(Winform)一样(关闭,托盘图标,事件响应,手动退出等)
- c# 做的登录窗体,登录成功后当前登录Form关闭,打开Main窗体,但Main窗体点关闭按钮后程序仍在进程怎么办