|
-
Dec 29th, 2005, 02:59 PM
#1
Thread Starter
Giants World Champs!!!!
[RESOLVED] Paste JPG into Picture Box, How?
I am trying to paste an image that I copied from a web page into a picture box. I am using the following code but it isn't working:
VB Code:
Option Explicit
Private Sub Command1_Click()
Picture1.Picture = Clipboard.GetData(vbCFBitmap)
End Sub
What am I doing wrong?
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Dec 29th, 2005, 03:13 PM
#2
Re: Paste JPG into Picture Box, How?
it's working for me. i just omitted the (vbCFBitmap).
-
Dec 29th, 2005, 03:20 PM
#3
Re: Paste JPG into Picture Box, How?
Working fine for me with the vbCFBitmap.
-
Dec 29th, 2005, 03:23 PM
#4
Re: Paste JPG into Picture Box, How?
 Originally Posted by Jmacp
Working fine for me with the vbCFBitmap.
yep, working with the vbCFBitmap on my PC too.
-
Dec 29th, 2005, 04:36 PM
#5
Re: Paste JPG into Picture Box, How?
I don't see any problems either unless you selected "Copy Shortcut" instead.
Works fine with all default settings.
-
Dec 29th, 2005, 06:03 PM
#6
Thread Starter
Giants World Champs!!!!
Re: [RESOLVED] Paste JPG into Picture Box, How?
Hmmm, now it is working. Strange, thanks for the posts!
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
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
|