Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Disabling Print Screen

Disabling Print Screen

Scheduled Pinned Locked Moved C#
csharphelp
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    memoboy
    wrote on last edited by
    #1

    i have a problem i need to diasble the print screen in my application. i have been program my application by using C# language and i need to prevent any user from copying any desplayed image on it. i have been search alot but i couldnt find any. i try to learn programming what ever i had i feal that i did'nt get anything

    W D 2 Replies Last reply
    0
    • M memoboy

      i have a problem i need to diasble the print screen in my application. i have been program my application by using C# language and i need to prevent any user from copying any desplayed image on it. i have been search alot but i couldnt find any. i try to learn programming what ever i had i feal that i did'nt get anything

      W Offline
      W Offline
      Wjousts
      wrote on last edited by
      #2

      What do you mean by "disable the print screen"? You want to stop people copying text off your application using the clipboard? You want to stop people taking screenshots (in which case, I think you're out of luck!)?

      1 Reply Last reply
      0
      • M memoboy

        i have a problem i need to diasble the print screen in my application. i have been program my application by using C# language and i need to prevent any user from copying any desplayed image on it. i have been search alot but i couldnt find any. i try to learn programming what ever i had i feal that i did'nt get anything

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You can disable print screen keys (PrtScrn and Alt-PrtScrn) by redirecting the hot keys to your applications main window. But there is no way you can't stop another application, like ScreenGrabber, from grabbing the screen, and your graphic images. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        D M 2 Replies Last reply
        0
        • D Dave Kreskowiak

          You can disable print screen keys (PrtScrn and Alt-PrtScrn) by redirecting the hot keys to your applications main window. But there is no way you can't stop another application, like ScreenGrabber, from grabbing the screen, and your graphic images. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          D Offline
          D Offline
          Dan Neely
          wrote on last edited by
          #4

          I thought dvd player apps could prevent 3rd party apps from doing screen grabs. I assume they do it by accessing hardware at a lower level than the win32api provides access to.

          D 1 Reply Last reply
          0
          • D Dan Neely

            I thought dvd player apps could prevent 3rd party apps from doing screen grabs. I assume they do it by accessing hardware at a lower level than the win32api provides access to.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Not really. You're grabbing exactly what you should, the image in the frame buffer. The frame buffer just happens to be blank in the video window. The video you're seeing isn't being shown in this frame buffer, but is an overlay rendered by a different part of the video card. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            1 Reply Last reply
            0
            • D Dave Kreskowiak

              You can disable print screen keys (PrtScrn and Alt-PrtScrn) by redirecting the hot keys to your applications main window. But there is no way you can't stop another application, like ScreenGrabber, from grabbing the screen, and your graphic images. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              M Offline
              M Offline
              memoboy
              wrote on last edited by
              #6

              you have been mentioned somthing about redirecting the hot key, i have been searched for this solution but i didnt find any thing help full for how to do that with c#. it's ok for me to prevent the people from doing it at least in the easy way, so here i have a new Q how could i use the registry hot key with c# thanks for help, a little help do alot i try to learn programming what ever i had i feal that i did'nt get anything

              D 1 Reply Last reply
              0
              • M memoboy

                you have been mentioned somthing about redirecting the hot key, i have been searched for this solution but i didnt find any thing help full for how to do that with c#. it's ok for me to prevent the people from doing it at least in the easy way, so here i have a new Q how could i use the registry hot key with c# thanks for help, a little help do alot i try to learn programming what ever i had i feal that i did'nt get anything

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                memoboy wrote:

                how could i use the registry hot key

                ???????? :confused::confused::confused::confused::confused::confused: What are talking about? The only thing I have on doing this for PrtScn is in C++, here[^]. I don't know of any C# version of this. From what I've seen in sample code, it should be pretty straight forward to convert some variant of this technique to C#. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups