我试图检测到 form2 在 form1 中关闭。到目前为止我有这个
private void AddStageBtn_Click(object sender, EventArgs e)
{
Form2 form2 = new Form2();
form2.ShowDialog();
if (form2.IsDisposed)
{
MessageBox.Show("it was closed!");
}
}
有什么建议么?再次感谢!