473,413 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Capturing a Screenshot of a Hidden Form

I want to be able to capture a screenshot of a windows form that is hidden.
My goal here is to create a form of any particular size (the size could be
larger than the screen), get a screenshot, and save it to a image file.

I know how to capture a screenshot of a form but unfortunately if part of
the form is "off" the screen, then the area that is not on the screen is
"black" in the file.

Hope this makes sense.

Thanks,

Yosh
Dec 10 '05 #1
1 3904
PrintWindow

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Yosh" <yo***@nospam.com> wrote in message
news:Ov**************@TK2MSFTNGP14.phx.gbl...
I want to be able to capture a screenshot of a windows form that is hidden.
My goal here is to create a form of any particular size (the size could be
larger than the screen), get a screenshot, and save it to a image file.

I know how to capture a screenshot of a form but unfortunately if part of
the form is "off" the screen, then the area that is not on the screen is
"black" in the file.

Hope this makes sense.

Thanks,

Yosh

Dec 10 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: JDS | last post by:
Hi, all. I'd like to do the following, preferably *without* resorting to JavaScript: I have a long, dynamically-generated form questionnaire. Not all of the form fields are dynamically...
0
by: ryanr | last post by:
Is there a way in {C++, C#, VB} to capture (as in screenshot) a hidden window (as in inactive, invisible)? I'm trying to get an app to work correctly, and this is the final piece I need. Thanks,...
3
by: Andi | last post by:
Greetings all, I have recently created a database that functions as an inventory analysis tool for the department I work in. Recently, there has been a user requirement to have functionality to...
1
by: Malcolm Lim | last post by:
I'd like to know how to capture a screenshot of the desktop in 256 colors (8 bits) instead of the default 32 bits. If possible, please include some sample source codes as i have tried searching...
2
by: Carsten Klotz | last post by:
Hi, does someone know, if it's possible capturing the content of a panel, when its form has state "minimized"? Details: A panel contains a Webbrowser object (AxSHDocVw.AxWebBrowser). My...
1
by: Ralph Krausse | last post by:
My UI is one table, 2 colums, one row. The cell on the left has a tree and the cell on the right has a placeholder control. When the user clicks on a tree item, I dynamically load the apporopiate...
10
by: Andrew | last post by:
Hi, I have a messagebox that pops up due to an event. I did it in javascript. ie. alert("Time's up. Assessment Ended"); I want to capture the OK and Cancel events of this alert messagebox. My...
1
by: - Electronic.HR - | last post by:
So, my problem is that i have to get picture from this site (the one with code on it), but I can't figure out how to do that. Picture is generated from php code, and I can't find way to save that...
6
by: gsherp | last post by:
Hi, Is there easy way of capturing innerHTML content when the user submits the form? I tried using a hidden input field which works, however...is there any other way of doing this without using...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.