14-03-13, 10:12 PM
SaLoOoMX كتب :شكرآ اخى لاكن الذى اقصده هو تصوير جزء من الشاشه فقطكود :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim bound As Rectangle
Dim screenshot As Bitmap
Dim gravic As Graphics
bound = Screen.PrimaryScreen.Bounds
screenshot = New Bitmap(bound.Width, bound.Height, System.Drawing.Imaging.PixelFormat.Format24bppRgb)
gravic = Graphics.FromImage(screenshot)
gravic.CopyFromScreen(bound.X, bound.Y, 0, 0, bound.Size, CopyPixelOperation.SourceCopy)
PictureBox1.Image = screenshot
End Sub

