WPF 屏蔽Alt+F4强制退出
2020-12-13 17:01
阅读:309
标签:style blog color ar sp div log bs amp WPF 屏蔽Alt+F4强制退出 标签:style blog color ar sp div log bs amp 原文地址:http://www.cnblogs.com/gaobing/p/4088968.html
if (e.KeyStates == Keyboard.GetKeyStates(Key.F4) && Keyboard.Modifiers == ModifierKeys.Alt)
{
e.Handled = true;
}
评论
亲,登录后才可以留言!