Results 1 to 3 of 3

Thread: Clipboard.getdata

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Angry

    im surfing the net.
    I right click the pic, and press copy
    It puts a number in the clipboard.
    How do I retrieve the picture with
    that number?

  2. #2
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    Is it like this?

    Code:
    Private Sub Command1_Click()
        Image1.Picture = Clipboard.GetData
    End Sub
    Hope this helps
    TheBao

  3. #3
    Guest
    Originally posted by TheBao
    Is it like this?

    Code:
    Private Sub Command1_Click()
        Image1.Picture = Clipboard.GetData
    End Sub
    Hope this helps
    TheBao
    Part of it.
    You have to display the format you want to retrieve as well.


    vbCFBitmap - 2 - Bitmap (.bmp files)
    vbCFMetafile - 3 - Metafile (.wmf files)
    vbCFDIB - 8 - Device-independent bitmap (DIB)
    vbCFPalette - 9 - Color palette


    Code:
    Private Sub Command1_Click()
        Image1.Picture = Clipboard.GetData(vbCFBitmap)
    End Sub

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