Full screen modal in Win 10 - disable certain keys C# .Net

Willie Trombone

Honorary Master
Joined
Jul 18, 2008
Messages
60,038
Is there a way I can have a C# .Net form run full screen while disabling Windows, Menu, Ctrl, alt keys as long as it's loaded in Windows 10? In other words, the user is forced to interact with the modal form before continuing?
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
Yes, Google examples using low level Windows API hooks using the C++ InteropServices for user32.dll:
 
Last edited:

Willie Trombone

Honorary Master
Joined
Jul 18, 2008
Messages
60,038
[)roi(];18865092 said:
Yes, Google low level Windows API hooks using the C++ InteropServices for user32.dll:
  • SetWindowsHookEx: sets the keyboard hook
  • UnhookWindowsHookEx: removes the keyboard hook
  • CallNextHookEx: relays keystroke information to an application listening for keyboard events

Excellent, ta!
 
Top