Copy image to clipboard

  • Thread starter Thread starter Robert Crago
  • Start date Start date
R

Robert Crago

Hi there,

I have a PictureBox that contains an image I created from
a file thus:

pictureBix1.Image = new Bitmap("Image.gif");

Now I want to place that same image on the PPC clipboard
so it can be pasted into other applications like Pocket
Word or Notes.

I can successfully paste text into the clipboard using
DllImports but do not know how to access the underlying
hBitmap (or whatever) to pass to SetClipboardData().

Any suggestions?

Thank you...

Robert
 
Thanks Alex - I suspected as much, just hoped there was something simple I
had missed.

In fact I'll probably write a dll to not only read the file but also copy it
to the clipboard as well while I'm at it.

Thanks again
 
Back
Top