I am trying to copy a .jpeg file and pasting in VB.
But running into the following error.
"Cannot read from or write to the clipboard. (1-1604)"
Any clue why...
Thanks.
Printable View
I am trying to copy a .jpeg file and pasting in VB.
But running into the following error.
"Cannot read from or write to the clipboard. (1-1604)"
Any clue why...
Thanks.
Lets say you're in Explorer and you see a jpeg file in a folder and you want to copy it to another folder. You select the file and press Ctrl+C to copy. Select another folder and press Ctrl+V to paste. If you look in your CLIPBRD.EXE all you will see is the file location, not an image of that file. ;)
Thanks for your response.
I am sorry but I do not understand how would that help me to fix the error.
How are you copying this jpeg?
If it's an image on the clipboard then try,
If Clipboard.GetFormat(vbCFBitmap) Then Picture1.Picture = Clipboard.GetData(vbCFBitmap)
I'm just trying to draw you away from the misconception of the ClipBoard operation. Just because you copy a filename it doesn't copy the picture.Quote:
Originally Posted by Cern_VB_developer
Edgemeal has answered your question. ;)