Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Dear All

Any one give me some ideas about how to prevent print screen function in my C# windows application.
Posted
Updated 28-Jul-11 19:56pm
v2

1 solution

C#
private void Form_KeyPress(object sender, KeyPressEventArgs e)
{
     if ((int)e.KeyChar == 44) e.Handled = true;
}

Thanks
 
Share this answer
 

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