FOLLOW US
4dots Software CODE HELP BLOG

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);
	 }