How to catch keyboard strokes in a C # winform forms application (CTRl + alt + Del)

Is there a way to handle the Ctrl+ Alt+ key combination Del. For example, in a quiz application (Win Forms), the user should not switch to other windows until the test is completed.

I can fix the finishing touches Ctrland Altindividually, using standard C # properties. but as soon as the user presses a key Del. The control exits my application and windows process it.

Any thoughts will be helpful.

thanks.

+1
source share
6 answers

, . . , , - ( ...). , , - ( ...).

, ...

, , - - , - . !

+5

, .

.

Alt + Ctrl + Del .

+2

AFAIK, Ctrl + Alt + Del . , , .

+2

:

http://www.thescarms.com/vbasic/StopReBoot.aspx

, Win9x , , ( Ctrl-Alt-Delete), WinNT .

0

, .

:

:

, . , . : , Windows . (WM_SYSKEYDOWN WM_SYSKEYUP) (WM_KEYDOWN WM_KEYUP). . , . WM_SYSKEYDOWN WM_SYSKEYUP , , .

, System Key Strokes SMQ? . - , . API, . : Interception oblita. api .

: https://msdn.microsoft.com/en-us/library/windows/desktop/ms646267(v=vs.85).aspx

0

Form.TopMost true, Form.Activate() .

( , .)

-1
source

Source: https://habr.com/ru/post/1716307/


All Articles