0

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";
3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by jonsca
0

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.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.