?
Solved

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

Posted on 2006-11-23
4
Medium Priority
?
1,094 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
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 …
Starting up a Project

719 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