Solved

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

Posted on 2006-11-23
4
996 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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 …

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now