0

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...

Abdur Rahman
  • 657
  • 16
  • 46

2 Answers2

2

Already discussed/answered on SO: How do I prevent print screen

try searching a bit before asking! ;-)

Community
  • 1
  • 1
Jake Armstrong
  • 569
  • 4
  • 21
0

In windows form application, Use this code in form keyup event,

if (e.KeyCode == Keys.PrintScreen)
            {
                Clipboard.Clear();
            }

form keypreview should be true.