private void Form1_FormClosing(object sender, FormClosedEventArgs s)
{
DialogResult dr = MessageBox.Show("是否关闭窗口", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (dr == DialogResult.Yes) { ?} else {? } }
紫泉
相关分类