1. Allow your picturebox to accept Ctrl+V. This can be done by trapping the picturebox KeyDown event. Here are some values you want to capture
KeyCode = vbKeyV, Shift = vbCtrlMask
2. Assuming the user copied the web image into memory, here is what you will want to do to add it to your picturebox
Code:
If Clipboard.GetFormat(vbCfBitmap)=False Then
' provide some message, image is not a bitmap -- could be WMF, EMF, PNG, etc
' JPGs are fine even though they are not bitmaps
Else
Set Picture1 = Clipboard.GetData()
SavePicture Picture1, [path/filename]
End If
Now that you have the picture and saved it somewhere, your application will need to know that it has been done and where it was saved, so that when app opens again in near future, it can go and retrieve it. This is where INI files or registry settings can be useful.
P.S. GIFs can be loaded too, however, not the transparent type. When they are converted to bitmaps .GetData, transparency is lost. Getting transparent GIFs from clipboard into VB takes more work.
Edited: Just saw you posted a related topic. If the case is that you downloaded an image from some web source, do as MartinLiss recommended: Use LoadPicture along with the full path & file name.