Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Jun 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cannot paste into picturebox (VB6)

    What I am trying to do is paste an image from the clipboard into a picturebox control in my VB project. But I think there is something fishy with the format of my image in the clipboard. I'm using windows XP.

    Using the Webbrowser control I have copied an image into my clipboard and I know it is successfully copied there because I can paste it manually into MS Word. It pastes into word perfectly every time. The problem is that MS Word is the ONLY program that I can paste it to. Everywhere else I get no response or an error message.

    I tried these:
    MsgBox Clipboard.GetFormat(vbCFBitmap)
    MsgBox Clipboard.GetFormat(vbCFText)
    MsgBox Clipboard.GetFormat(vbCFDIB)
    MsgBox Clipboard.GetFormat(vbCFMetafile)
    MsgBox Clipboard.GetFormat(vbCFLink)

    ...and EACH time they say "False"

    It seems as if windows XP has introduced some new kind of clipboard formatting that VB doesn't know about. So my question is, if my clipboard contains some other information besides the image i am looking for, how am I to extract the image from it into my VB project?

  2. #2
    New Lounger
    Join Date
    Jun 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oh yeah the line that I am using to paste is:
    Picture1.Picture = Clipboard.GetData

Tags for this Thread

Posting Permissions

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