|
-
May 1st, 2008, 01:37 PM
#1
Thread Starter
New Member
Copy from Clip Board Error
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.
-
May 1st, 2008, 02:57 PM
#2
Re: Copy from Clip Board Error
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.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
May 1st, 2008, 03:19 PM
#3
Thread Starter
New Member
Re: Copy from Clip Board Error
Thanks for your response.
I am sorry but I do not understand how would that help me to fix the error.
-
May 1st, 2008, 03:49 PM
#4
Re: Copy from Clip Board 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)
-
May 1st, 2008, 05:43 PM
#5
Re: Copy from Clip Board Error
 Originally Posted by Cern_VB_developer
Thanks for your response.
I am sorry but I do not understand how would that help me to fix the error.
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.
Edgemeal has answered your question.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|