Solved

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

Posted on 2006-11-23
4
1,071 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Simple Linear Regression
Progress

623 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