Clipboard

  • Thread starter Thread starter Viktor
  • Start date Start date
V

Viktor

I want the dialog box with the parameters to be sent to
the Clipboard, so that later I could past it to the output
file. Is there any way in C# to do this? Or maybe through
the InterOp serveces?

There is a function "Clipboard.SetDataObject" in C#, which
can do this. But I could not find a way to send the bitmap
of my dialog box to it.

Any ideas?

Viktor
 
hi Viktor:

You should be able to pass the bitmap reference to SetDataObject, i.e.

Clipboard.SetDataObject(bitmap);

Have you tried that?
 
Yes, it works fine. The problem is how to capture my Form
into a Bitmap.

Viktor

-----Original Message-----
hi Viktor:

You should be able to pass the bitmap reference to SetDataObject, i.e.

Clipboard.SetDataObject(bitmap);

Have you tried that?
 
Back
Top