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,