how to disable “PRINT SCREEN” button while running my Application in WPF?

前端 未结 8 1972
滥情空心
滥情空心 2020-12-19 03:36

How can I disable Print Screen functionality while my WPF application is running?

The use-case is that my client wants to avoid unnecessary replication of valuable p

8条回答
  •  爱一瞬间的悲伤
    2020-12-19 04:08

    Basically you can hook to the ClipBoard events and then set the image copied to null if someone does it. So they can copy the image but it will be reset:

    Have a look at this:

    Clipboard event C#

    Alternatively in a timer, check the content of the clip board and clear it as soon as it is set to a picture.

提交回复
热议问题