how can I capture a portion of the form (not the form but the window, including components) as a picture and put it in a picture box?
Printable View
how can I capture a portion of the form (not the form but the window, including components) as a picture and put it in a picture box?
Use the BitBlt API with the source as GetDC(GetDesktopWindow). You can then "GetWindowRect" on Form.hWnd and use that rect as a cookie cutter to cut out the part you want, before you blit it.