FOLLOW US
softpcapps Software CODE HELP BLOG

Shareware and Freeware Open Source Windows Software Applications and Free Online Tools

How to correctly copy Text to the Clipboard

To correctly copy text to the clipboard, you have to clear it first like in the following code :
	
	
	 private void CopyTextToClipboard(string txt)
	 {
		 Clipboard.Clear();
		 Clipboard.SetText(txt);
	 }