首页 > 代码库 > WPF 屏蔽Alt+F4强制退出

WPF 屏蔽Alt+F4强制退出

 if (e.KeyStates == Keyboard.GetKeyStates(Key.F4) && Keyboard.Modifiers == ModifierKeys.Alt){     e.Handled = true; }

 

WPF 屏蔽Alt+F4强制退出