WPF 屏蔽Alt+F4强制退出

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

 

posted @ 2014-11-11 11:13  b̶i̶n̶g̶.̶  阅读(657)  评论(0编辑  收藏  举报