I found that code somewhere and I find it quite useful but I would like to find a way to make it work so it capture only the given window target. Maybe with a processID or W
This works in vb.net2.0. I just used it.
Here is the source code.
Dim SC As New ScreenShot.ScreenCapture
'captures entire desktop straight to file
SC.CaptureScreenToFile("c:\accops\test\desktop2.jpg", Imaging.ImageFormat.Jpeg)