Sinisterly
really usefull screen shot grabber - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework)
+--- Thread: really usefull screen shot grabber (/Thread-really-usefull-screen-shot-grabber)



really usefull screen shot grabber - polas - 03-11-2012

Code:
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If Not PictureBox1.Image Is Nothing Then If sfd.ShowDialog() = DialogResult.OK Then If sfd.FilterIndex = 1 Then 'If you dont include this extension u wont be able to set the image as a wallpaper unless u edit it using image editor PictureBox1.Image.Save(sfd.FileName & ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg) ElseIf sfd.FilterIndex = 2 Then PictureBox1.Image.Save(sfd.FileName & ".bmp", System.Drawing.Imaging.ImageFormat.Bmp) End If End If Else MessageBox.Show("The is no Picture to save", "Info") End If End Sub Dim sfd As New SaveFileDialog With {.Filter = "Jpg|*.jpg|Bmp|*.bmp"} Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If Clipboard.ContainsImage() Then 'display the clipboard image in the picurebox PictureBox1.Image = Clipboard.GetImage() End If End Sub 'tam kad pasleptum vaizda ekrano kuris mus nereikalingas visai Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.PictureBox1.Image = Me.ToBitmap() End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub

Public Sub DequeForEach(Of T)(ByRef ThisQueue As Queue(Of T), ByVal DoAction As Action(Of T))
While ThisQueue.Any
DoAction(ThisQueue.Dequeue)
End While
End Sub

End Class
Can some help to fix this problem if yuo are rally hackers you will help me i think cuz i need to finish this problem.
I'm making this project for spying what are they doing and capture their screen and see what i want to see cuz i'm working on my security projects.


RE: really usefull screen shot grabber - polas - 03-11-2012

so no body know that simple code ?