0

I am looking to get full height picture of form but I am only able to get the screenshot of only whats visible but I want to get screenshot of full form which has content beyond visible part.

I already saw there was solution for listbox How can I take a screenshot of a Winforms control/form in C#? but i am looking generate full page image of form I can't quite figure it out.

This my current code:

Bitmap image = new Bitmap(form.Width, form.Height);
      form.DrawToBitmap(image, new Rectangle(new Point(0, 0), image.Size));
      return image;
Community
  • 1
  • 1
Alston Antony
  • 179
  • 2
  • 13
  • answer provided on other question about listbox and I am looking for winforms – Alston Antony Jan 02 '16 at 11:05
  • I had answered a similar question but can't find the post :-( - What it boiled down to is this: Take shots of the portion shown with drawtobitmap, then scroll down take anther shot etc. finally stitch together! It worked quite well.. – TaW Jan 02 '16 at 13:57
  • @TaW thanks for response in the mean time if you can find your answer it wold great :) – Alston Antony Jan 02 '16 at 15:56
  • Found it! [here it is](http://stackoverflow.com/questions/30918450/winforms-how-to-print-the-whole-of-a-form-including-unseen-parts/30924473?s=1|0.1069#30924473)... – TaW Jan 02 '16 at 22:48

0 Answers0