
Copying the contents of a picture box to clipboard
Quote:
>Hi my name is Les. I need to find a way to copy the contents of a picture
>box (which will have some text and some line graphics that were made using
>the line (x1,y1)-(x2,y2) command. Thanks for your help in advance.
>Les
Hi Les,
This code might help.
Private Sub Command1_Click()
Clipboard.Clear
Call Clipboard.SetData(Picture1.Picture, vbCFBitmap)
End Sub
If this doesn't work, you may have to play with different formats.
If you encounter problems using the Clipboard object, check out the
Knowledge Base article Q138909 which explains using API calls to do the
Clipboard operations.
Hope this helps
Sant