Hi,

I wonder how it would be possible to pass a String to the clipboard.
If you normally select a textstring in for example WordPad and press Ctrl-C, you copy this string to the Memory/Clipboard so you can Ctrl-V that text somewhere else.

I wonder how that would be possible to do programatically for ex this string ?

String^ copyString = "CopyThisString";

Yes, I think I did figure it out using this code wich seems to work:

String^ getText = "getString";
Clipboard::SetText(getText );

Don't know if there is a managed code to do it or not, but here is how to do it with normal win32 api functions.

This question has already been answered. Start a new discussion instead.