screen capture program [TUT]
timer1.code:
[php]Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim BackUpClipboard As String = My.Computer.Clipboard.GetText
SendKeys.Send("{PRTSC}")
PictureBox1.Image = My.Computer.Clipboard.GetImage
End Sub[/php]
form1.code:
[php]Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub[/php]
or full source code:
[php]Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim BackUpClipboard As String = My.Computer.Clipboard.GetText
SendKeys.Send("{PRTSC}")
PictureBox1.Image = My.Computer.Clipboard.GetImage
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
End Class[/php]












