|
31.2 How can I copy a bitmap from the clipboard to a PictureBox?
|
This code snippet shows how you can set your PictureBox's image to be the image from the clipboard:
|
this.pictureBox1.Image = (Bitmap)Clipboard.GetDataObject().GetData(DataFormats.Bitmap);
|
Me.pictureBox1.Image = CType(Clipboard.GetDataObject().GetData(DataFormats.Bitmap), Bitmap)
|
|
|
|