It is just a trick, not a solution made to avoid average users from doing things we don’t want. To solve this problem at the root we need to lock the printers, lock the emails and kill all paste keys in our applications. If the user has a screencapture program installed this does not work, but if the user is not able to install things on his PC it can help someway.
On the form where we don’t want the user to capture screen we will activate the KeyPreview option using the property on the Form object. Then add this code to the KeyUp event.
private void Form1_KeyUp(object sender, KeyEventArgs e)
{
if( e.KeyCode == Keys.PrintScreen || e.KeyCode == Keys.Print)
{
Clipboard.Clear();
e.Handled = true;
}
}
This way after a Ctrl+ Printscreen or Alt+Printscreen if you go to Paint or Word and click Paste, there won’t be a copy of the screen on your document or bitmap.
If someone know a more serious way to kill this option let us know and we will link it ;o).