Any Ideas on how to get a picture of just a certain program widow and not the entire Desktop?
This is the Code I used to get a pic of the Desktop
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim bounds As Rectangle Dim screenshot As System.Drawing.Bitmap Dim graph As Graphics bounds = Screen.PrimaryScreen.Bounds screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb) graph = Graphics.FromImage(screenshot) graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy) Form2.PictureBox1.Image = screenshot Timer1.Enabled = False Form2.Show() Me.Opacity = 100 End Sub
Any help would be awesome. :twisted: