private void Form1_FormClosing(object sender, FormClosedEventArgs s) { DialogResult dr = MessageBox.Show("是否关闭窗口", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (dr == DialogResult.Yes) { ?} else {? } }
添加回答
举报
0/150
提交
取消