且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如果其实例正在运行,请关闭Windows窗体

更新时间:2023-10-17 09:57:34

尝试一下,

在关闭按钮(或)关闭表单事件中使用它
Try it,

use this in your Close Button (or) Form Closing Event
foreach(Form f in this.MdiChildren)
{
f.Close();
}