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
The easiest way to do it, though it's a hack, is this:
SendKeys.Send("{PRTSC}") Dim Screenshot As Image = Clipboard.GetImage() Screenshot.Save("c:\ScreenShot.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)