日期:2014-05-18 浏览次数:20939 次
if (MessageBox.Show("您确认要退出吗?", "退出系统", MessageBoxButtons.OKCancel) == DialogResult.OK)
{
this.Dispose();
Application.Exit();
}
else
e.Cancel = true;
------解决方案--------------------
你就不该把x显示出来