+ Reply to Thread
Results 1 to 9 of 9

Thread: Screenshot Program

  1. #1
    Newbie Tsukuyomi15 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    12

    Screenshot Program

    Hello, I am attempting to create a Screenshot program using Visual Basic .NET 2008. I know how I'm going to do everything else, but I don't know how to make it where whenever the Screenshot is taken the user can save it to their harddrive. Can someone help me, please?

  2. #2
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: Screenshot Program

    I found several examples:

    How To Capture and Print the Screen, a Form, or Any Window
    VBnet™ Visual Basic Developers Resource Centre

    These should give you instructions. Even if they are not for Visual Studio 2008 they are for Visual Basic .NET so they will work in VS 2008.

  3. #3
    Newbie Tsukuyomi15 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    12

    Re: Screenshot Program

    Thank You!!

  4. #4
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: Screenshot Program

    No problem!

  5. #5
    Learning Programmer ikkeugh is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    79

    Re: Screenshot Program

    Isn't there a simple way to capture a form and put the data in a picurebox in that same form, outside what everyone sees.

  6. #6
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: Screenshot Program

    You should be able to load a screen capture from clipboard and insert into a picture box fairly easy.

  7. #7
    Learning Programmer ikkeugh is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    79

    Re: Screenshot Program

    isn't there another way than putting it into the clipboard ?

  8. #8
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: Screenshot Program

    Save it as a temporary file, I suppose. I'm unsure of a better way though. When you fetch a screen capture, where is that data stored? You could feed the imageBox directly.

  9. #9
    Learning Programmer travy92 will become famous soon enough travy92's Avatar
    Join Date
    Sep 2007
    Location
    Australia
    Age
    17
    Posts
    73

    Re: Screenshot Program

    Do what I did.
    Code:
    SendKeys.Send ("{Prtsc}")
    Then retrieve the image from clipboard and make the PictureBox's image the clipboard image.

    Then you can save it anywhere.

    EDIT - Just follow my tutorial HERE.
    There are many bugs with this. Since then I have fixed most of them. I'll update the tutorial when I'm not busy.

    Thanks.
    C:\Users\Travis\Desktop\Image Converter\Knight1.bmp

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Replies: 8
    Last Post: 12-16-2009, 01:53 PM
  2. Tutorial: Starting C# with C# 2008 Express Edition
    By Jordan in forum CSharp Tutorials
    Replies: 20
    Last Post: 07-27-2009, 04:45 AM
  3. Help with Square root and calculator program!!!
    By 123456789asdf in forum C and C++
    Replies: 10
    Last Post: 12-02-2007, 04:35 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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