i wondered if it was possible to copy an image in code each time it was clicked on for example.
eg, the user clicks on a picture of a face, the code copies the image and positions somewhere on the form (unimportant where).
basically i need to be able to copy an image an infinite number of times if needed, so i can't just create another image and make it visible when the first image is clicked.
Name a form "Form1" and set it's ScaleMode to Pixels (#3).
Add a picture box, name it "Picture1".
VB Code:
Option Explicit
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Const SRCCOPY = &HCC0020 ' (DWORD) dest = source