Results 1 to 4 of 4

Thread: Help! how do i print screen into picturebox??

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Location
    Ireland
    Posts
    5

    Angry Help! how do i print screen into picturebox??

    Hi everybody..

    i need help..... what i want to do is hav a picturebox in my form
    and update it every second with printscreen....

    anybody hav any ideas's how i might go about this?

    i also want to have it so that the picture is scaled down to the size of the picture box...

  2. #2
    Hyperactive Member
    Join Date
    Dec 1999
    Posts
    321
    this will paste the clipboard information gathered with PrintScr to the picturebox Picture1.

    VB Code:
    1. Private Sub Command1_Click()
    2. Picture1.PaintPicture Clipboard.GetData, 0, 0
    3. End Sub
    Signed, Rodik ([email protected])
    Programmer,usesVB6ED
    ===========================
    Copyright©RodikCo,2002.

    Dont mind this signature ;] Its old

  3. #3
    Hyperactive Member
    Join Date
    Dec 1999
    Posts
    321
    You might want to use a ImageBox instead, since it's got a Stretch property.

    VB Code:
    1. Image1.Stretch = True
    2. Image1.Picture = Clipboard.GetData
    Signed, Rodik ([email protected])
    Programmer,usesVB6ED
    ===========================
    Copyright©RodikCo,2002.

    Dont mind this signature ;] Its old

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Location
    Ireland
    Posts
    5

    Talking

    cool yeah it worked but how would i be able to size it down to fit into a smaller picturebox....?

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