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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top