I have a windows form application.
The form is large & has scroll bars to view its entire content.
I need to take the screen shot of the entire form(including the area which is outside of screen due to the forms height).
I tried following code, but it captures only the part of the form which is visible on screen:
ScreenCapture sc = new ScreenCapture();
// capture entire screen, and save it to a file
Image img = sc.CaptureScreen();
// display image in a Picture control named imageDisplay
this.imageDisplay.Image = img;
// capture this window, and save it
sc.CaptureWindowToFile(this.Handle,"C:\\temp2.gif",ImageFormat.Gif);
I am not able to take screen shot of the entire Form.
Can anybody please let me know the way to capture the entire form including the area which is hidden due to scroll?