Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to capture Image of the Invisible/Hidden Control Using c#

Posted on 2006-11-23
4
Medium Priority
?
1,111 Views
Last Modified: 2010-04-16
Experts,

   Using c#.Net,  I have to capture the Image of a control which is not visible / Hidden.

I have to capture & display the images of the controls which are placed on windows which are hidden. Example, If there are 2 forms in a application (Form1 and Form2), Suppose there are some controls on Form1 and the form which focussed is from2. Now from Form 2, The Image of Form1 needs to be captured and save the image.

The thing is I can capture the image of the control when the control is visible and the focus is set to the Form ( Current Form which is opened).

I tried with various methods but no success.
One of the methods I have used is “CreateDIBSection”.

I have also tried using CreateGraphics method of the control.

Please Let me know if any one has solution.

It will be helpful if the Source code is posted,

 

Looking for your help.

 

Thanks in advance,

 

0
Comment
Question by:kShari
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Collindsouza earned 200 total points
ID: 18003581
Take a look at this link..

http://www.codeproject.com/csharp/imagecapture.asp and right at the bottom of the page under Hidden windows it says about captures a control to a bitmap, even if it is hidden
0
 

Author Comment

by:kShari
ID: 18066665
Thanks Collin
0
 

Author Comment

by:kShari
ID: 18066668
I have done my job with the help of the link provided.

Regards
Kshari
0
 
LVL 5

Expert Comment

by:Collindsouza
ID: 18067637
glad to be of assistance ;)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Starting up a Project

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question