Disable the Alt+F4, Alt+Tab,F4 keys through c# program

  • Thread starter Thread starter Dev
  • Start date Start date
D

Dev

Hello,
How do disable the Alt+F4, Alt+Tab,F4 keys through c# program?
If anyone know please let me know..... sample code or reference link.

Thanks in Advance for all help and suggestions!!!!!!

Thanks,
Dec
 
To disable Alt+F4, just add a Closing event handler to your form and set
e.Cancel to true.

I don't think you can disable Alt+Tab. Win32 platforms are
cooperative-multitasking systems. Preventing task-switching goes
against the whole intent of the OS.

I haven't seen that F4 by itself does anything, so I'm not sure what
you're trying to prevent there.
 
Back
Top