|
|
|
| Title | Copy and paste images to the Clipboard |
| Keywords | clipboard, copy, paste, image |
| Categories | Graphics |
|
|
|
Use the Clipboard object's Clear and SetData methods to copy an image. Use its Paste method to paste the image.
|
|
Private Sub Command1_Click()
Clipboard.Clear
Clipboard.SetData Picture1.Picture, vbCFBitmap
Command1.Enabled = False
Command2.Enabled = True
End Sub
Private Sub Command2_Click()
Picture2.Picture = Clipboard.GetData(vbCFBitmap)
End Sub
|
|
|
Formatted by
Neil Crosby
|
| |
|
| |
|
|