I have a listview control that is on a winforms form. It fills the full screen but there are more items there than the screen can show.
How can I take a screenshot of the whole control as if I could display the whole contents of the listview on screen? So if the whole listview takes 1000 x 4000 pixels, then I want an image/bitmap of that size.
How do I do this? When I try printscreen, it only returns what’s on the screen and anything outside the screen appears grey.
Forms are controls, so you should be able to save the entire contents to a bitmap with something like:
Update
DrawToBitmaponly draws what’s on-screen. If you want to draw the entire contents of the list you must iterate through the list to find the size of the contents then draw each item. Something like: