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?
 

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