Results 1 to 2 of 2

Thread: capture part of form as picture to picturebox

  1. #1

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604

    capture part of form as picture to picturebox

    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?
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width