Results 1 to 3 of 3
  1. #1
    Coder[Vb10e]'s Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Crossfire Alaska
    Posts
    1,577
    Reputation
    -10
    Thanks
    349
    My Mood
    Fine

    how to make a screen shot taker

    first add 3 buttons, 1 picture box, a new form (form2)

    change button1 text to Shoot
    button2 text to save and button3 text to Place Screen

    and delete all code and copy this 1:


    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Form2.Hide()

    Dim area As Rectangle

    Dim capture As System.Drawing.Bitmap

    Dim graph As Graphics

    area = Form2.Bounds

    capture = New System.Drawing.Bitmap(Bounds.Width, Bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb )

    graph = Graphics.FromImage(capture)

    graph.CopyFromScreen(area.X, area.Y, 0, 0, area.Size, CopyPixelOperation.SourceCopy)

    PictureBox1.Image = capture
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim save As New SaveFileDialog

    Try
    save.Title = "Save File"

    save.FileName = "Screenshot"

    save.Filter = "Png |*.Png"

    If save.ShowDialog() = DialogResult.OK Then

    PictureBox1.Image.Save(save.FileName, System.Drawing.Imaging.ImageFormat.Png)

    End If

    Catch ex As Exception

    End Try
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    Form2.Show()
    End Sub

    End Class
    THX me, no ZP needed :P

  2. The Following User Says Thank You to Coder[Vb10e] For This Useful Post:

    UI123UI (08-07-2011)

  3. #2
    Solo's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    2,133
    Reputation
    64
    Thanks
    383
    My Mood
    Cold
    Or you could press prnt scrn....
    Nipples

  4. #3
    Coder[Vb10e]'s Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Crossfire Alaska
    Posts
    1,577
    Reputation
    -10
    Thanks
    349
    My Mood
    Fine
    More easy this way :P

Similar Threads

  1. [Request] How To Make Login screen
    By SilentTape in forum CrossFire Mods & Rez Modding
    Replies: 5
    Last Post: 08-30-2010, 10:01 AM
  2. How to post a Screen Shot!
    By DeathHunter in forum CrossFire Discussions
    Replies: 14
    Last Post: 04-08-2010, 02:33 PM
  3. here is the screen shot that how to make money
    By aiajfirkkk in forum CrossFire Hacks & Cheats
    Replies: 4
    Last Post: 02-06-2010, 04:54 AM
  4. how do i put screen shot into the description part?
    By ducksfan1996 in forum Combat Arms Help
    Replies: 5
    Last Post: 01-18-2010, 01:19 AM
  5. [GUIDE]How to post a screen shot.
    By czudej in forum Combat Arms Hacks & Cheats
    Replies: 4
    Last Post: 08-05-2009, 02:55 AM