Copy and paste with C# (Clipboard didnt help)
<p>I know this is asked many times before but it s not what i look for, to make copy paste in c# we use;</p>

<pre><code>//Copy
Clipboard.SetDataObject("String to copy"); 

//Paste
IDataObject iData = Clipboard.GetDataObject(); 
</code></pre>

<p>I only want to use copy, after using:</p>

<pre><code>Clipboard.SetDataObject("String to copy"); 
</code></pre>

<p>when i close the program, then when i right click and paste on a txt file nothing happens!
<br>
So Clipboard class seems doesnt help, so i need another solution.</p>
