Solved

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

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

705 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

18 Experts available now in Live!

Get 1:1 Help Now