ReePrime
Tuto Programme vb 2008 Pour Capturer L'ecran

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

Tuto Programme vb 2008 Pour Capturer L'ecran

H
hamza bboriss

661 Views • Jan 24, 2010

Description

Un Bon Tuto firawar.webobo.com allez Bye

Voici les codes

Le boutton 1:
:
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)
PictureBox1.Image = screenshot
Button 2:
Dim savefiledialog1 As New SaveFileDialog
Try
savefiledialog1.Title = "save file"
savefiledialog1.FileName = ".bmp"
savefiledialog1.Filter = "bitmap | *.bmp"
If savefiledialog1.ShowDialog() = DialogResult.OK Then
PictureBox1.Image.Save(savefiledialog1.FileName, System.Drawing.Imaging.ImageFormat.Bmp)

End If

Catch ex As Exception

End Try