BeforeClose
e参数属性:
Form: 表示要关闭的窗口Cancel: 逻辑型,设为True,将禁止关闭窗口。CloseMode: 整数型,如果是通过Form的Close方法关闭窗口,则返回1,否则返回0。
手动点红叉关闭窗口的CloseMode=0