WPF 屏蔽Alt+F4强制退出2023-12-10 23:28:33 if (e.KeyStates == Keyboard.GetKeyStates(Key.F4) && Keyboard.Modifiers == ModifierKeys.Alt) { e.Handled = true; } WPF 屏蔽Alt+F4强制退出上一篇:Programming C#.Structs下一篇:C#发送邮件三种方法(Localhost,SMTP,SSL-SMTP)