Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
hey i have create a application which lock screen but the problem is that when user press Alt+f4 my application close.
any idea for disable Alt+f4
Posted

1 solution

use given code in FormClosing event of Form

MIDL
e.Cancel = true;
           base.OnClosing(e);
 
Share this answer
 
Comments
Dalek Dave 25-Oct-10 9:33am    
Yep, good answer.
ShilpaKumari 25-Oct-10 9:42am    
Thanks for your help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900