Reputation: 667
I have an application developed in C#. I need a mechanism to restrict the user to take screen shot when the application window on top. Is it possible to restrict the user to take screenshot??
I have already listen the PrtScr Button to restrict the built in mechanism of windows to take screenshot.
But if user uses some capturing application to capture the skin.. I think there might be some windows event or such like thing, which is triggered when a a screenshot is taken. I need to know about it. Any help will be appreciated...
Upvotes: 0
Views: 1210
Reputation: 21
In windows form application, Use this code in form keyup event,
if (e.KeyCode == Keys.PrintScreen)
{
Clipboard.Clear();
}
form keypreview should be true.
Upvotes: 0
Reputation: 579
Already discussed/answered on SO: How do I prevent print screen
try searching a bit before asking! ;-)
Upvotes: 2