[Source Code] ScreenShot Taker

Posts 14 of 4 · Page 1 of 1
[Source Code] ScreenShot Taker
Add 1 textbox and 1 button and your done.

Code:
Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Interval = "300" 'It is currently set to 3 seconds
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim ScreenSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
        Dim Screenshot As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
        Dim shot As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(Screenshot)
        shot.CopyFromScreen(New Point(0, 0), New Point(0, 0), ScreenSize)
        Screenshot.Save(TextBox2.Text & ".jpeg")
        ' Screenshot.Save("Rename Me" & ".jpeg") 'Rename that Rename Me Bit to w/e you like
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Timer1.Start()
    End Sub
End Class
Enjoy.. (Credit me if you use this xD)
This is a great release in Multitools as it automatically takes a screenshot + saves it in the Location where your .exe is (or you can use the commented out version instead)
Do not make threads for such code...post it in the snippet vault.
Oh right.. Forgot 'bout that xD (I forgot there was a snippet vault)

//request delete + close
I close instead.
Posts 14 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?