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

JerryMungo

Honorary Master
Joined
Jul 18, 2008
Messages
37,562
Reaction score
6,315
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?
 
Yes, Google examples using low level Windows API hooks using the C++ InteropServices for user32.dll:
 
Last edited:
[)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
Sign up to the MyBroadband newsletter
X