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
  1. Home
  2. General Programming
  3. C#
  4. screenshot using windows service

screenshot using windows service

Scheduled Pinned Locked Moved C#
graphicsquestion
4 Posts 3 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.
  • J Offline
    J Offline
    justintimberlake
    wrote on last edited by
    #1

    how can i capture screesnshot from windows service. I want to capture the screenshot and store it in a different image file and store in a directory. i got this with a windows application using gdi but could not get it from windows service

    R 1 Reply Last reply
    0
    • J justintimberlake

      how can i capture screesnshot from windows service. I want to capture the screenshot and store it in a different image file and store in a directory. i got this with a windows application using gdi but could not get it from windows service

      R Offline
      R Offline
      Rajasekharan Vengalil
      wrote on last edited by
      #2

      What is the error you are seeing?

      -- gleat http://blogorama.nerdworks.in[^] --

      J 1 Reply Last reply
      0
      • R Rajasekharan Vengalil

        What is the error you are seeing?

        -- gleat http://blogorama.nerdworks.in[^] --

        J Offline
        J Offline
        justintimberlake
        wrote on last edited by
        #3

        When i use the graphics of gdi i get error message the handle is invalid Graphics gfx=Graphics.fromImage((image)bitmap); gfx.copyfromscreen(0,0,0,0,screewidth,screeheight); Is there any alternative??

        L 1 Reply Last reply
        0
        • J justintimberlake

          When i use the graphics of gdi i get error message the handle is invalid Graphics gfx=Graphics.fromImage((image)bitmap); gfx.copyfromscreen(0,0,0,0,screewidth,screeheight); Is there any alternative??

          L Offline
          L Offline
          Laubi
          wrote on last edited by
          #4

          has your service the permission to access the desktop? by default a server can't interact with the gui!

          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