[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?
Re: Paste JPG into Picture Box, How?
it's working for me. i just omitted the (vbCFBitmap).
Re: Paste JPG into Picture Box, How?
Working fine for me with the vbCFBitmap.
Re: Paste JPG into Picture Box, How?
Quote:
Originally Posted by Jmacp
Working fine for me with the vbCFBitmap.
yep, working with the vbCFBitmap on my PC too.
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.
Re: [RESOLVED] Paste JPG into Picture Box, How?
Hmmm, now it is working. Strange, thanks for the posts! :)