How to Copy and Paste the Picture
Posted on January 5, 2009
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 'Graphics - How to Copy and Paste the Picture Option Explicit 'Add two CommandButton and two PictureBoxes to your form and add a picture to Picture1. 'The Command1 is to copy the picture of the first PictureBox to the clipboard. 'The Command2 is to paste the Picture to Picture2 Private Sub Command1_Click() Clipboard.Clear Clipboard.SetData Picture1.Picture End Sub Private Sub Command2_Click() Picture2.Picture = Clipboard.GetData End Sub |