How to save image to hard drive?

qadeer37

Well-known member
Joined
May 1, 2010
Messages
63
Location
Hyderabad,pakistan
Programming Experience
1-3
Option Strict Off

Public Class Form1
Private Sub CapTureScreenShot(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
SendKeys.Send("{%}({PRTSC})")
Me.Show()
'code for saving this file to hard drive.
PictureBox1.Image = CType(My.Computer.Clipboard.GetImage, Image)
Me.WindowState = FormWindowState.Normal
End Sub
End Class
 
The Image object has a Save() method built right in
CType(My.Computer.Clipboard.GetImage, Image).Save(PathHere, TypeHere (enum))
 

Latest posts

Back
Top