简单来说,如何订阅和处理以下事件?
System.Windows.Forms.Application.Exit(new System.ComponentModel.CancelEventArgs(true));
因为显然这不会给我我的 CancelEventArgs:
Application.ApplicationExit += new EventHandler(ApplicationExitHandler);
private void ApplicationExitHandler(Object sender, EventArgs e)
{
...
}