Results 1 to 7 of 7

Thread: Capture particular part of a form and all controls therein...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2013
    Posts
    127

    Exclamation Capture particular part of a form and all controls therein...

    I need to capture an image of a particular part of a form and all of the controls that are visible within the specified region. I've looked here and other places and tried at least 7 different ideas, yet none of them seem to do what I would like. I need to be able to specify the Left, Top, Width, & Height of the region of the form I need to capture.

  2. #2
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: Capture particular part of a form and all controls therein...


  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2013
    Posts
    127

    Re: Capture particular part of a form and all controls therein...

    Thanks for that, yet I have already been down that road. As specified, I need to capture a picture of a particular region on the form ALONG WITH all of the controls inside that region.

  4. #4
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,066

    Re: Capture particular part of a form and all controls therein...

    One way is, first capture all the window and then use PaintPicture to copy just a part of the captured image into a PictureBox.
    To capture a window look here.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2013
    Posts
    127

    Re: Capture particular part of a form and all controls therein...

    Thanks, Eduardo. That does capture the form as a picture, but unfortunately there is one control it just doesn't want to capture: the Windows Media Player control. I thought at least one type of capture would do it, but it doesn't seem that any of them work. Thanks for the info, though.

  6. #6
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,066

    Re: Capture particular part of a form and all controls therein...

    Quote Originally Posted by mcoulter876 View Post
    Thanks, Eduardo. That does capture the form as a picture, but unfortunately there is one control it just doesn't want to capture: the Windows Media Player control. I thought at least one type of capture would do it, but it doesn't seem that any of them work. Thanks for the info, though.
    I never captured Windows Media Player so I don't know. I remember that PrintScreen didn't work with it in the old days because it works with DirectX but I think that that changed in newer OS's.
    I hope someone else can help you.

  7. #7
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,066

    Re: Capture particular part of a form and all controls therein...

    Quote Originally Posted by mcoulter876 View Post
    I thought at least one type of capture would do it, but it doesn't seem that any of them work.
    Did you test with BitBlt?

Tags for this Thread

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