+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: VB 9.0 How to make a Screenshot Tool

  1. #1
    Join Date
    Nov 2008
    Location
    Kosovo.
    Posts
    2,391
    Rep Power
    30

    VB 9.0 How to make a Screenshot Tool

    Hello CodeCall

    Today i'll show you how to make a ScreenShot Program in Visual Basic
    2008 Express Edition ..

    That will look like This


    All You'll need are :
    2 Buttons
    1 Picture Box.

    Button 1 rename with Take a ScreenShoot ..and
    Button 2 rename with Save ..
    and the Picture Box Size with a big Area ..

    The Code for Button 1(Take a ScreenShot ) is
    Code:
           
            Dim bounds As Rectangle
            Dim screenshot As System.Drawing.Bitmap
            Dim graph As Graphics
            bounds = Screen.PrimaryScreen.Bounds
            screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
            graph = Graphics.FromImage(screenshot)
            graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
            PictureBox1.Image = screenshot
    and for the button 2 ( SAVE ) is
    Code:
            Dim savefiledialog1 As New SaveFileDialog
            Try
                savefiledialog1.Title = "Save File"
                savefiledialog1.FileName = "*.bmp"
                savefiledialog1.Filter = "Bitmap |*.bmp"
                If savefiledialog1.ShowDialog() = DialogResult.OK Then
                    PictureBox1.Image.Save(savefiledialog1.FileName, System.Drawing.Imaging.ImageFormat.Bmp)
                End If
            Catch ex As Exception 'Do Nothing
            End Try
    a Screenshot that i made with it ..


    Finally , Test it ..

    ScreenShot.rar

    Best Wishes ,
    Mendim.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: VB 9.0 How to make a Screenshot Tool

    Very neat tutorial! +rep

  4. #3
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: VB 9.0 How to make a Screenshot Tool

    good tutorial mendim, you are doing a nice job with these new tutorials
    remind me to +rep you later because i cant now
    yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
    Code:
    eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
    www.amrosama.com | the unholy methods of javascript

  5. #4
    SaintLion's Avatar
    SaintLion is offline Programmer
    Join Date
    Oct 2008
    Posts
    173
    Rep Power
    0

    Re: VB 9.0 How to make a Screenshot Tool

    Nice man, I like it +rep

  6. #5
    Join Date
    Nov 2008
    Location
    Kosovo.
    Posts
    2,391
    Rep Power
    30

    Re: VB 9.0 How to make a Screenshot Tool

    Quote Originally Posted by Jordan View Post
    Very neat tutorial! +rep
    Quote Originally Posted by amrosama View Post
    good tutorial mendim, you are doing a nice job with these new tutorials
    remind me to +rep you later because i cant now
    Quote Originally Posted by SaintLion View Post
    Nice man, I like it +rep

    Thanks a lot ..

  7. #6
    Join Date
    Sep 2008
    Location
    Kosovo
    Posts
    4,032
    Rep Power
    44

    Re: VB 9.0 How to make a Screenshot Tool

    nice one mendim. .. don't forget to remind me to +rep you when it lets me to

  8. #7
    whitey6993's Avatar
    whitey6993 is offline Programming Expert
    Join Date
    Dec 2008
    Posts
    435
    Rep Power
    15

    Re: VB 9.0 How to make a Screenshot Tool

    Awesome tutorial. +rep

  9. #8
    Join Date
    Sep 2008
    Location
    Kosovo
    Posts
    4,032
    Rep Power
    44

    Re: VB 9.0 How to make a Screenshot Tool

    now i can +rep you .. i think this +rep gonna make you GuRu .. Congrats ..

  10. #9
    Join Date
    Nov 2008
    Location
    Kosovo.
    Posts
    2,391
    Rep Power
    30

    Re: VB 9.0 How to make a Screenshot Tool

    Thanks a lot EgzON , now i reached the GURU Status with over 200 reputation level .

  11. #10
    Join Date
    Sep 2008
    Location
    Kosovo
    Posts
    4,032
    Rep Power
    44

    Re: VB 9.0 How to make a Screenshot Tool

    Quote Originally Posted by mendim. View Post
    Thanks a lot EgzON , now i reached the GURU Status with over 200 reputation level .
    you're welcome dude

+ Reply to Thread
Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Charny Screenshot tool [v1.2] - [Auto-Upload images!]
    By Charny in forum Member Software/Projects
    Replies: 2
    Last Post: 06-16-2010, 08:55 PM
  2. Charny Screenshot tool [v1.1]
    By Charny in forum Member Software/Projects
    Replies: 0
    Last Post: 04-09-2010, 10:46 PM
  3. Charny Screenshot tool [v1.0]
    By Charny in forum Member Software/Projects
    Replies: 0
    Last Post: 04-05-2010, 08:15 PM
  4. Screenshot?
    By Hektor in forum Linux/Unix General
    Replies: 1
    Last Post: 04-04-2008, 06:02 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts