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. capture screenshot without current window

capture screenshot without current window

Scheduled Pinned Locked Moved C#
3 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
    James_Zhang
    wrote on last edited by
    #1

    How would I capture a screenshot of the computer without the form in it (and whatever's behind it shows up). The form should should be visible (not minimized) on the screen. So if i start with my desktop and open the form that takes the picture, the form should be visible to the user but the screenshot taken should only show the desktop, without a white hole in it where the form was. If i opened another application like internet explorer and then opened the form, the form should take a screenshot of the desktop with the internet explorer above it. :confused:

    T 1 Reply Last reply
    0
    • J James_Zhang

      How would I capture a screenshot of the computer without the form in it (and whatever's behind it shows up). The form should should be visible (not minimized) on the screen. So if i start with my desktop and open the form that takes the picture, the form should be visible to the user but the screenshot taken should only show the desktop, without a white hole in it where the form was. If i opened another application like internet explorer and then opened the form, the form should take a screenshot of the desktop with the internet explorer above it. :confused:

      T Offline
      T Offline
      Tamer Oz
      wrote on last edited by
      #2

      i assume that you have the screenshot code. if user will take the screenshot with a button when user clicks button try setting forms opacity property to 0% for taking screenshot visit http://www.geekpedia.com/tutorial181_Capturing-screenshots-using-Csharp.html[^]

      B 1 Reply Last reply
      0
      • T Tamer Oz

        i assume that you have the screenshot code. if user will take the screenshot with a button when user clicks button try setting forms opacity property to 0% for taking screenshot visit http://www.geekpedia.com/tutorial181_Capturing-screenshots-using-Csharp.html[^]

        B Offline
        B Offline
        Brandon X
        wrote on last edited by
        #3

        Yeah, I've done the same before. When the user clicks the button to take the screen shot, I fire a timer that sets the forms.visible property to false, then take the screen shot, and then form.visible becomes true when finished executing. wrap it around a try catch finally to make sure the form always comes back into view, i suppose; for saftey's sake.

        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