CaptureWindow calls CreateBitmapPicture to build a bitmap from the newly created bitmap and palette. The CaptureForm, CaptureClient, CaptureScreen, and CaptureActiveWindow procedures all use CaptureWindow to capture specific windows. Once the desired image is captured it can be printed using the PaintPicture method of the Printer object. Also, the image can easily be copied to the Clipboard using its SetData method. This sample is based on Microsoft's Knowledge Base article Q161299.
Instructions Run the code and experiment.
The Print Picture option scales the captured image to fit on a printed page. The image is sized vertically or horizontally which ever is most appropriate. You can resize the form to better view the captured image.