Click to See Complete Forum and Search --> : How to Capture the image which is not focussed


ManoharaSampathila
November 23rd, 2006, 05:02 AM
Hi,



In one of my project, I have to capture the Image of a control which is not visible / focused.

I have to capture & display the images of the controls which are placed on the different tabpages.

The thing is I can capture the image of the control when the control is visible and the focus is set to the parent tab page.

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.



It will be helpful if the Source code is posted,



Looking for your help.



Thanks in advance,

pareshgh
November 23rd, 2006, 11:13 PM
see if you can make use of this sample
and if it is helpful.
also see the bottom replies in this link.
it may give you some hints.

http://www.codeproject.com/csharp/ImageCapture.asp

more,-

http://www.c-sharpcorner.com/Code/2002/April/ScreenCaptureUtility.asp


Paresh.