FOLLOW US
softpcapps Software CODE HELP BLOG

Shareware and free 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);
	 }