关闭按钮问题在出现异常错的时候,点关闭按钮,不想本窗体关闭,应该如何操作?正常情况可以用e.cancel=true但是在catch里没有e了,请教各位高手。[解决办法]
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = true; }