FOLLOW US
4dots Software CODE 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);
	 }	 
	

 

Please Donate!

Please Share!