Block Control+Alt+Delete

后端 未结 14 756
渐次进展
渐次进展 2020-12-03 08:35

I am doing an Online Quiz project in C#. The test client is a Windows Desktop Application running on Windows XP. I need to block the control+alt+d

14条回答
  •  再見小時候
    2020-12-03 09:23

    You'll also want to block alt+F4 with something like this:

    private void form_KeyDown(object sender, KeyEventArgs e) {
        if (e.KeyCode == Keys.F4 && e.Modifiers == Keys.Alt)
            e.Handled = true;
        base.OnKeyDown(e);
    }
    

提交回复
热议问题