111,098
社区成员




Form2 fm = new Form2();
fm.Show();
while (!fm.IsDisposed)
{
Application.DoEvents();//加上这句
this.Enabled = false;//禁用主窗体
}
this.Enabled = true;//激活主窗体
//继续执行
MessageBox.Show("子窗体关闭了,可以继续执行了");
private void Form8_FormClosing(object sender, FormClosingEventArgs e)
{
this.DialogResult = DialogResult.OK;
}
Form8 frm8 = new Form8();
frm8.Show();
if (frm8.DialogResult == DialogResult.OK)
{
//继续执行
}