📌  相关文章
📜  c# windows 窗体取消事件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:19.479000             🧑  作者: Mango

代码示例1
private void form1_FormClosing(object sender, FormClosingEventArgs e)
 {
    MessageBox.Show("Form Closing...");
    e.Cancel = true;
    MessageBox.Show("Form Closing Canceled.");
}