Results 1 to 4 of 4

Thread: Screenshots

  1. #1

    Thread Starter
    Addicted Member Flip's Avatar
    Join Date
    Jun 2002
    Location
    Burke, VA
    Posts
    247

    Question Screenshots

    Someone in API game me some code to take screenshots, but there is one problem. Is puts the shot on the form, and that works fine, but when i try to save it VB gives me an error and in the debugger i see that Form1.picture = 0. I dont know why but does anyone have the solution/new code? Thanks.

  2. #2
    Member 110359's Avatar
    Join Date
    Jun 2002
    Location
    Melbourne, Australia
    Posts
    43
    Maybe if you posted the code that you were already using somebody might be able to help you (Not necessarily me ).

    Just a thought.

    110359
    Why is it that when you kill one man people call you a murderer and when you kill one thousand you are a conqueror?

  3. #3
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Use Form.Image with SavePicture instead of Form.Picture...
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Yeah do as PsychoMark says, but also I wanted to say that you can use that code (that I gave you, I think ) on anything with a hDC, i.e. a picture box. You don't have to use the form, I was just to lazy to add a picture box

Posting Permissions

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



Click Here to Expand Forum to Full Width