当使用
FormClosing
事件时,为什么代码 e.Cancel = true;
起作用,但 new CancelEventArgs().Cancel = true;
不起作用?private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
new CancelEventArgs().Cancel = true;
}